Jumping through objects
doug_smuppet
Member Posts: 99
Hi...
I have another doubt, see this example:
So, I did my Hero walk to left and right, OK... but I want him to jump through the blocks and stay, like the image above. but I don't know how do that, because I did my hero collide with the blocks.
And another thing, I want that he just jump UP and go back DOWN. Not to jump sideways.
Thanks...
Attention! this images are only for example.
Comments
@doug_smuppet, you can certainly do what you ask. I've attached a simple demo for you.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
that's great, and now.. how can I go back to down?
Make holes in the platforms? Up to you as the game designers how you want to construct your levels....
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
If you want to be able to "drop down" through platforms, it's actually pretty easy. I presume @jamie_c's demo puts the collide behaviour in the platforms. If so, just have whatever button you press to "drop" trigger a rule in the platform. When it's pressed, the collide isn't active. When it isn't pressed, the normal platform collide rules apply.
If you only want them to drop through 1 platform there are a few ways you can stop them falling after the first one, but the simplest is probably to put a timer around it, and after 0.2s or however long it takes to fall, collide with the platform again.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Let me explain...
I'll do arrows: Left, Right, Up and Down.
When the players touch it, the Actor will do the movement.
but the Actor always be on the same line position Y, and he can walk on free position X.
for example...
the Line block 1: Y 100
the Line block 2: Y 250
the Line block 3: Y 400
the Line block 4: Y 550
and this blocks will do a loop to left and right, so.. the Actor need jump only through the blocks, if he touch the fire, he dies.
I did the movements, but I don't know how do the collide with fire and blocks.
up...
Sorry I'm not clear on why my suggestion won't work. He's jumping down through the platforms, not the fire, right?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
I've updated my previously posted demo to include moving back down through the platforms. Now press space to jump up and pass through them, and hold down the down arrow key to drop through them.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page