How do I fix the life of my player ?

Get help using Construct 2

Post » Sat Oct 04, 2014 11:29 pm

Hi guys...I am getting crazy

basicly I like this: if my player hits without jumping the tank, player should loose 1 life

if player hits the tank jumping/falling ..the tank looses 1 life on life 0 the tank falls from the platform

I show U my events...myabe U can help me

currently on the first jump also my player looses 1 life...at the second jump not...

can U help me ?
sample life.jpg

thanks
You do not have the required permissions to view the files attached to this post.
B
37
S
16
G
2
Posts: 451
Reputation: 4,873

Post » Sun Oct 05, 2014 4:54 am

maybe you need a collider at the top of the tank.
then check whether the player on collision with collider or not.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 292
Reputation: 6,678

Post » Sun Oct 05, 2014 6:06 am

that is a good idea...I will try that :) thanks !!!!!
B
37
S
16
G
2
Posts: 451
Reputation: 4,873

Post » Sun Oct 05, 2014 6:27 am

@mariogamer Here is a sample of what I do.
You do not have the required permissions to view the files attached to this post.
B
56
S
15
G
13
Posts: 826
Reputation: 17,675

Post » Sun Oct 05, 2014 7:44 am

Thanks I will try that :) ....how can I make my player move left a few pixels if it collides with enemy from right
and move a bit right if it collides from left...I understand that it should be done with vector X...but how can I manage the right/left issue ?

thanks a lot :)
B
37
S
16
G
2
Posts: 451
Reputation: 4,873

Post » Tue Oct 07, 2014 9:01 am

try set your X to :
self.X-10 --> move left
self.X+10 --> move right
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 292
Reputation: 6,678

Post » Tue Oct 07, 2014 9:04 am

thanks a lot :)
B
37
S
16
G
2
Posts: 451
Reputation: 4,873


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests