Topic:   Another Glitch has been discovered.   (Read 21949 times)


0 Members and 1 Guest are viewing this topic.

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Another Glitch has been discovered.
« on: September 16, 2008, 02:36:55 PM »
REPEAT
x = x + 1
IF x > 10 THEN PRINT $x$
PRINT $x$
DELAY 100
REFRESH TEXT
END REPEAT
Doesn't appear to be working? I think it has something to do with the DELAY Its like the code after it is occurring before the DELAY is done I THINK.
EDIT: I have inserted double spacing between each line and no difference.
« Last Edit: September 16, 2008, 02:39:08 PM by Tireas_Dragon »
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Another Glitch has been discovered.
« Reply #1 on: September 16, 2008, 04:52:52 PM »
It doesn't actually show the text until the script is completed. Since you're refreshing the previous text at the end of the script, that's the only one you see. The bug happens even in this simple test.

PRINT Test
DELAY 100
REFRESH TEXT

I'll see if I can fix this.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Another Glitch has been discovered.
« Reply #2 on: September 16, 2008, 05:00:50 PM »
I already have this fixed, but I have to test it out to see if I broke anything else. It looks like I had this fix in there before and removed it, so there may be a reason.

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Another Glitch has been discovered.
« Reply #3 on: September 16, 2008, 05:23:22 PM »
I think I know why, I think you did it that way so text would appear faster.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Another Glitch has been discovered.
« Reply #4 on: September 16, 2008, 06:04:40 PM »
Is this due to the PRINT command change you made awhile ago (in 3.9.8 I think) so that when multiple PRINT commands execute in succession all the text would be displayed at once?

Hey TD, for a short term fix you could always have your script activate on a timer:

Code: [Select]
ON TIMER 100
 Â REFRESH TEXT
 Â x = x + 1
 Â IF x > 10 THEN PRINT $x$
 Â PRINT $x$
END TIMER
« Last Edit: September 16, 2008, 06:05:15 PM by Silverwind »
I survived the spammage of 2007

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Another Glitch has been discovered.
« Reply #5 on: September 16, 2008, 06:24:21 PM »
The reason I did the code that way is I discovered problems in my battle engine when I was using the repeat command the timer would constantly reset itself during the print command but nice suggestion tho.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Another Glitch has been discovered.
« Reply #6 on: September 16, 2008, 08:53:34 PM »
I may have already fixed the TIMER problem. It was part of the REPEAT bug, but the test version I sent you only had the fix for KEYDOWN. Let me clean up what I have and I'll send you a new beta.

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Another Glitch has been discovered.
« Reply #7 on: September 16, 2008, 08:54:14 PM »
Quote
Is this due to the PRINT command change you made awhile ago (in 3.9.8 I think) so that when multiple PRINT commands execute in succession all the text would be displayed at once?

You could be right. I'll have to try it.

Tireas Dragon


  • GMG Extraordinaire

  • ***


  • Posts: 1626

  • Trying to recover from my shattered screen.
Re: Another Glitch has been discovered.
« Reply #8 on: September 17, 2008, 09:49:24 AM »
A nice feature would be to have a command that sets the current text as the card text. Remember when you talked about the PICT command? Something similar to that would be nice.
I must be dreaming (wake up me wake up) How could this have happened. Tireas' cry when he found his computer fallen over in his chair with it's screen shattered.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Another Glitch has been discovered.
« Reply #9 on: September 17, 2008, 03:09:16 PM »
Another cool command would be to store the text in the text field as a variable's value.

Man, there's so many possibilities in programming. :)
I survived the spammage of 2007