How to invincible let the player pick an item?

Get help using Construct 2

Post » Wed Oct 03, 2012 7:02 am

I'm new here, I have a doubt!

I'm making a platform game, where my player is an object invisible,
and the animation is fixed on him, he dies only when the monsters touch the player,

I was wondering how do I object when the player becomes invincible killing the monster so when you touch?

example: when the super mario gets the star.

my english is bad = /

thank you!
B
2
Posts: 1
Reputation: 252

Post » Wed Oct 03, 2012 9:21 am

If i'm not wrong, you should do something like this:

Player > is overlaping "monster" > monster destroy with animation etc...

You mean your player is the object " Pin pin to" animation object ? And when "player" touching enemy, they'll die like in super mario ?farsmile902012-10-03 09:23:54
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Wed Oct 03, 2012 10:12 am

Dorvast: use an instance variable of the player (for instance a boolean variable named Invincible).

+ If Player is Invincible
+ If player is overlapping monster (or on collission)
----> Do some stuff

Set the boolean variable to true if the player is invincible, and set it to false if it is not.
B
20
S
5
G
4
Posts: 51
Reputation: 4,139


Return to How do I....?

Who is online

Users browsing this forum: Matthew de, onzephyr and 0 guests