If the sprite isn't supposed to be at y 5, then it'll vibrate - could you upload the unfinished project so we could have a look?
And for the double jump - make a variable. Set it to one at the beginning of the jump and zero when it's done. Make the sprite only jump if the variable equals zero.
Offline
To decrease the vibration, make that change y by 1 instead of 5.
Or better yet, do this:
For maximum slope detection and minimal vibration.
Last edited by Kileymeister (2011-01-21 22:25:15)
Offline
Even Better Yet Change Y By 0.1 Smarrt Ehhh
Offline
Did you try: if touching floor, set y to 0?
Also try this for the jump: if touching floor, then (insert jump script here).
Offline
ian528 wrote:
Did you try: if touching floor, set y to 0?
Also try this for the jump: if touching floor, then (insert jump script here).
![]()
Why would i set y to 0?
Oh and also i screwed everything up somehow because i tried to make it when he's standing still it looks like hes breathing. Can someone check my script and tell me how to fix it?
First Game, unfinished 2
Offline
Nano511 wrote:
ian528 wrote:
Did you try: if touching floor, set y to 0?
Also try this for the jump: if touching floor, then (insert jump script here).
![]()
Why would i set y to 0?
Oh and also i screwed everything up somehow because i tried to make it when he's standing still it looks like hes breathing. Can someone check my script and tell me how to fix it?
First Game, unfinished 2
You would set y to 0 because so he won't bounce up and down when he is touching the floor.
I also think you need costumes to animate breathing.
Last edited by ian528 (2011-01-22 12:25:44)
Offline
ian528 wrote:
Nano511 wrote:
ian528 wrote:
Did you try: if touching floor, set y to 0?
Also try this for the jump: if touching floor, then (insert jump script here).
![]()
Why would i set y to 0?
Oh and also i screwed everything up somehow because i tried to make it when he's standing still it looks like hes breathing. Can someone check my script and tell me how to fix it?
First Game, unfinished 2You would set y to 0 because so he won't bounce up and down when he is touching the floor.
I also think you need costumes to animate breathing.
but 0 y is like, in the middle of the screen. And i do have costumes.
Offline
Oh, no, I meant this:<set y to( 0 )
Last edited by ian528 (2011-01-22 14:37:38)
Offline
Nano511 wrote:
No, it diddnt work. I'de really like someone to take a look at my scripts. Im uploading a 3rd update so you can see whats wrong
Well, at least he is not vibrating!
Offline