Sprite Help!

For questions about using Classic.

Post » Sat Aug 06, 2011 7:24 pm

Lets say i have 2 sprite's each of them have a hp bar

If i click on one of it that one must lose 10 hp, And if it it's hp is down to 0 it has to be destroyed

So.. Here is the thing I am struggling with
when i click on one of them both of them loses 10 hp
(how do i make it so if i click on one, it lose 10 hp and only shows at the clicked one's Hp Bar)

When there is one ghost with 0 hp they both are destroyed
(How do i make it so, If it ceep on clicking on one and his hp drains to 0 it only destroys the one that was clicked)

Can anyone help me fast pls!

Any *.cap file will help much
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sat Aug 06, 2011 7:43 pm

Add the sprites to a family, then just check the family for collisions. The family will keep track of everything for you.

I created a small tutorial on families HERE. It includes a .cap.zenox982011-08-06 19:44:31
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Aug 06, 2011 7:45 pm

I don't understand that so well, Bec if have tried with family and that did not work for me.

Can You Please Just Post A Simple Cap File For Me Please?Stalker2472011-08-06 19:46:09
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sat Aug 06, 2011 8:57 pm

Thanks dude ou are the best!!
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sat Aug 06, 2011 9:36 pm

One more problem, The Hp bar does not work correctly with the sprite.
How do i make is so if there is draining hp form the Ghost(sprite) YOU can see it on the hp bar WITHOUT any interference with the other Ghosts(sprites)

I am using the normal Process-bar Plugin for hp bars
CAN anyone please help me fast!

Any cap file will be more helpful!Stalker2472011-08-06 21:37:02
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sat Aug 06, 2011 10:33 pm

Can someone help me fast, Sorry but i Can't wait anymore??
B
7
S
2
G
1
Posts: 193
Reputation: 1,745

Post » Sat Aug 06, 2011 10:57 pm

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Aug 07, 2011 8:42 am

Thanks Kyatric
B
7
S
2
G
1
Posts: 193
Reputation: 1,745


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests