how to destroy a block by jumping on top of it?
InovaTech
Member Posts: 161
hello
is there a way to jump on top of a block actor and destroy it, but if I hit it from the side the block dont move?
Sorry for my bad explanation..
is there a way to jump on top of a block actor and destroy it, but if I hit it from the side the block dont move?
Sorry for my bad explanation..
Best Answers
-
jamie_c ImagineLabs.rocks Posts: 5,772I have a power-up tutorial linked below. One of the power-ups is triggered by hitting a block from below. If you reverse it, you can use the same technique to destroy a block from above.
http://www.jamie-cross.net/?portfolio=gamesalad-recipe-006-platformer-powerups-double-jump-shield-shrink-and-hidden-block-mario-style -
gyroscope I am here.Posts: 6,598
Hi @InovaTech One way to tackle this is to have a transparent actor as your collision detector, not the block itself.
So when actor collides with actor of type Player
Change Attribute DestroyWhich to 5 --- or whatever
Timer: After 0.15 secs
Destroy
And in your block,
When DestroyWhich = 5
Destroy
Edit: typing while @Jamie_c was posting""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User