Open jorditost opened 10 years ago
Have a look at https://github.com/Pomax/Pjs-2D-Game-Engine/blob/master/docs/tutorial/more-mario.html, which does a thing like that for the "tube" teleporter example.
Is there a way to implement teletransportation with the function "addTube", passing a "TeleportTrigger" to connect two tubes in the same layer like in this example, using "teleportTo"?
http://processingjs.nihongoresources.com/test/PjsGameEngine/docs/tutorial/more-mario.html
The example on the website is not working in Processing in Java Mode but the method addTube passing a trigger does.
Thanks for your help!
if you wrote a function that does work in java mode, then by all means use it =)
(if you want to contribute that function back, pull requests are welcome)
I'm trying to code some platforms that appear and disappear. If the player is above the platform, when it disappears, the player should fall down. Now the player stays at the position where the platform was an needs jumping to update its position. Should I call some function from the class Player to make it to update its position and fall down after removing the platform?
Thanks for your help!