I need to have a script where a sprite moves up on a 5 level platform the level at the is the furthest away
- - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
----------------------------------
_______________________
The sprite must when w pressed...move up a level and not go any further until the w key is repressed, same with down...I already have made a mode that works but it will keep moving... it would be great if you could help.
Offline
LordSydney wrote:
I need to have a script where a sprite moves up on a 5 level platform the level at the is the furthest away
- - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
----------------------------------
_______________________
The sprite must when w pressed...move up a level and not go any further until the w key is repressed, same with down...I already have made a mode that works but it will keep moving... it would be great if you could help.
See, the human is imperfect, and what is happening here is you are holding w down too long, and it repeats. What you need to do is say if w pressed, move to platform, if w not pressed, if w pressed move to next platform.
Offline
bdn7 wrote:
LordSydney wrote:
I need to have a script where a sprite moves up on a 5 level platform the level at the is the furthest away
- - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
----------------------------------
_______________________
The sprite must when w pressed...move up a level and not go any further until the w key is repressed, same with down...I already have made a mode that works but it will keep moving... it would be great if you could help.See, the human is imperfect, and what is happening here is you are holding w down too long, and it repeats. What you need to do is say if w pressed, move to platform, if w not pressed, if w pressed move to next platform.
Almost. It's close and I think you have it right, you just typed it wrong.
If key w pressed:
go up one level
wait until not ( key w pressed )
End If
If key d pressed:
go down one level
wait until not ( key d pressed)
End If
That should work for what you are doing...if I read what you wrote right.
Offline
AtomicBawm3 wrote:
bdn7 wrote:
LordSydney wrote:
I need to have a script where a sprite moves up on a 5 level platform the level at the is the furthest away
- - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
----------------------------------
_______________________
The sprite must when w pressed...move up a level and not go any further until the w key is repressed, same with down...I already have made a mode that works but it will keep moving... it would be great if you could help.See, the human is imperfect, and what is happening here is you are holding w down too long, and it repeats. What you need to do is say if w pressed, move to platform, if w not pressed, if w pressed move to next platform.
Almost. It's close and I think you have it right, you just typed it wrong.
If key w pressed:
go up one level
wait until not ( key w pressed )
End If
If key d pressed:
go down one level
wait until not ( key d pressed)
End If
That should work for what you are doing...if I read what you wrote right.
Yeah, that's what I meant.
Offline
hey thanks guys I was really brainstorming...also the computer crashed an I lost all my progress!
Offline