ever made a game and felt there is nothing that will make the whole script work only once well possibly we should get a once block im new to this and well its really anoying not having a once block
Offline
trinary wrote:
Just remove any loop blocks from around your scripts.
No he means something like this:
Make it so when the space is pressed, move 100 steps, and don't do anything when you press space again.
Offline
iTweak0r wrote:
trinary wrote:
Just remove any loop blocks from around your scripts.
No he means something like this:
Make it so when the space is pressed, move 100 steps, and don't do anything when you press space again.
Here would be a solution:
The bad script:
when (space) key pressed move (100) stepsThe good script:
when gf clicked wait until <key [space v] pressed> move (100) stepsNote: In the first diagram, space is not a variable. In the second diagram, the key space pressed is a sensing block.
Offline
benjamin2 wrote:
iTweak0r wrote:
trinary wrote:
Just remove any loop blocks from around your scripts.
No he means something like this:
Make it so when the space is pressed, move 100 steps, and don't do anything when you press space again.Here would be a solution:
The bad script:when [space v] key pressed move (100) stepsThe good script:when gf clicked wait until <key [space v] pressed?> move (100) stepsNote: In the first diagram, space is not a variable. In the second diagram, the key space pressed is a sensing block.
Scripts fixed
Offline
Sherlockhomers wrote:
ever made a game and felt there is nothing that will make the whole script work only once well possibly we should get a once block im new to this and well its really anoying not having a once block
Use a repeat 1 block
Offline