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?
Offline
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
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!
Offline
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
Offline
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 pressedNever 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 #.
Offline
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 pressedNever 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