destory solid objects

Get help using Construct 2

Post » Sat Feb 15, 2014 11:03 am

Hello!

Here is my question:
I want to make a sprite that can be destroyed only when the player press the space bar AND colides with it. My objective is to make some rocks that are blocking the way and the character have to destroy them with his sword(pressing the space bar).i already have the character actions done(walking, attack, jump etc)
So the simple objective is when the character is not attacking the rock inorder to destroy it, the rock is blocking his way.
Also how can i make a group of 10 rocks,per exemple, to be destroyed individualy without creating 10 sprits for each rock?

Thank you very much
B
3
Posts: 3
Reputation: 181

Post » Sat Feb 15, 2014 12:49 pm

You can do

When sword collides with rock >> destroy rock.

OR

If player presses space + is facing correct direction + rock is overlapping at offset >> destroy rock.

For multiple rocks, you have one rock but just have multiple instances. That will be 10 copies of the same rock, behaviours, logic and all.
B
6
S
2
Posts: 89
Reputation: 682

Post » Sat Feb 15, 2014 1:41 pm

Thank you for your help.
The rock now destructs but only when its behaviour in not a solid or is disabled. and i need it to be a solid when the player isnt hitting it with the sword.. i have tryied the option "when player press space and he is colliding with rock-rock solid set disabled" but it still inst working.
B
3
Posts: 3
Reputation: 181

Post » Sun Feb 16, 2014 9:20 am

Its working now =) I altered the offset X value. Thank you so much for the help! =)
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: John Cutter and 6 guests