This site requires JavaScript, please enable it in your browser!
Greenfoot back
Avilianne
Avilianne wrote ...

2017/3/12

How to make object jump

Avilianne Avilianne

2017/3/12

#
How do you make an object jump from one object to another? Like the game 'WinterBells'. We need it for a school project. Thank you!
Super_Hippo Super_Hippo

2017/3/12

#
I don't know the game, but with "jump", do you mean "teleport"? If yes, one object should get/have a reference to the object it should teleport to and then you can use the setLocation method with the x and y value of the other object.
danpost danpost

2017/3/12

#
I think we need a screenshop of the game layout. I understand that it involves jumping from one to another of smaller and smaller objects to get to some goal. It is probably going up the screen and these objects are probably moving (maybe alternating rows left and right or, at least, different speeds). So, I would guess that by 'jumping', it would be like a normal 'jump and run' type jump with 'moving platfforms'. I have a demo for just such movement -- it is here.
Avilianne Avilianne

2017/3/13

#
Thank you! The demo was a huge help!
You need to login to post a reply.