In my platformer, I want to have a moving platform, but the character won't stay on the platform...
Last edited by Firedrake969 (2012-08-01 12:58:34)
Offline
wasabi56 wrote:
forever repeat until(( y position)=(anything))
Download it...
Offline
Try using this in your platform:
when gf clicked forever if < (seeing platform?) = true > go to x: (-12) y: (20) glide (2) secs to x: (-12) y: (80) wait (0.03) secs glide (2) secs to x: (-12) y: (20) wait (0.03) secs end when gf clicked forever if < (seeing platform?) = true > show else hide endRemember that the positions in the (glide to x = ( ) y = ( ) ) can be changed, as well as the positions in the (go to x = ( ) y = ( ) ).
Last edited by ErnieParke (2012-08-01 13:08:53)
Offline
You could use trig to make a moving platform.
forever go to x:(platform X) y:((([sin v] of (theta)) * (movement height)) + (playform y)) change [theta v] by (1)the variable (movement height), when set to 20, woumd mean the platform has a movement range of (platform y) +- 20
Last edited by Wes64 (2012-08-01 12:58:12)
Offline
very simple... make sure the image cannot rotate itself. IF direction = 90 (right) change scroll x (or just x position) by 3 (replace with speed) IF direction = -90 (left) change scroll x (or just x position) by -3 (replace with speed)
oh, and make sure it only does this when touching, and when you want it to move in a direction you add the rotation blocks. NO SIN NEEDED, OR COMPLICATED VARIABLES, OR WEIRD BLOCKS! AND THEY CAN GET OFF AT ANY TIME!
If you need any more help ask me on the Mist forums, and I will share with you everything I learnt on Rayman 4 from slippery rollers to elevators that disappear or turn upside-down so the player gets pushed off them.
Last edited by Borrego6165 (2012-08-01 13:33:57)
Offline
Borrego6165 wrote:
very simple... make sure the image cannot rotate itself. IF direction = 90 (right) change scroll x (or just x position) by 3 (replace with speed) IF direction = -90 (left) change scroll x (or just x position) by -3 (replace with speed)
oh, and make sure it only does this when touching, and when you want it to move in a direction you add the rotation blocks. NO SIN NEEDED, OR COMPLICATED VARIABLES, OR WEIRD BLOCKS! AND THEY CAN GET OFF AT ANY TIME!
If you need any more help ask me on the Mist forums, and I will share with you everything I learnt on Rayman 4 from slippery rollers to elevators that disappear or turn upside-down so the player gets pushed off them.
Go to the forums to talk there.
Offline
You used my old platformer base, right? The new one has slopes and moving platform support and walljump (easy to disable) http://scratch.mit.edu/projects/zubblewu/2703276
Last edited by zubblewu (2012-08-01 15:30:30)
Offline