This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-18 16:33:48

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Advancing Through Text Without Bugs

I am making an RPG and to advance through text which appears at the top of the screen you need to press space. The script I am currently using is:

When I recive _
Switch to Costome 1
Wait untill key space pressed?
Next costome
Wait untill key space pressed?
Next costome
Wait untill key space pressed

and so on. Though, with this script, It keeps on glitching up and skipping costoms or switching back to an origonal costome and stuff like that. Help?


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#2 2011-09-18 16:45:17

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Advancing Through Text Without Bugs

When I recive _
Switch to Costome 1
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed

Offline

 

#3 2011-09-18 19:22:58

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: Advancing Through Text Without Bugs

laptop97 wrote:

When I recive _
Switch to Costome 1
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed

Thanks!


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#4 2011-09-18 19:57:27

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: Advancing Through Text Without Bugs

laptop97 wrote:

When I recive _
Switch to Costome 1
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed

Never mind. Now it onyl goes to costome 2 and then stops


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#5 2011-09-18 20:30:32

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Advancing Through Text Without Bugs

LordAwesome123 wrote:

laptop97 wrote:

When I recive _
Switch to Costome 1
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed

Never mind. Now it only goes to costome 2 and then stops

It is Costume, and Until guys, spelling.... Okay, hmm maybe try this:

When I receive ______
switch to costume 1
wait until key space pressed
wait until not key space pressed
repeat 1
next costume
wait until key space pressed
wait until not key space pressed
repeat 1
next costume

and so on...

If that does not work, just use switch to costume #.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#6 2011-09-18 20:33:33

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Advancing Through Text Without Bugs

LordAwesome123 wrote:

laptop97 wrote:

When I recive _
Switch to Costome 1
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed?
Next costome
Wait untill not key space pressed?
Wait untill key space pressed

Never mind. Now it onyl goes to costome 2 and then stops

That's because it's a pattern; that's not all.  Basically, start with that hat and add this for every time a costume needs to change:

Wait until <not<space key pressed>>
Wait until <space key pressed>
next costume

Offline

 

Board footer