This makes me feel stupid - Families

For questions about using Classic.

Post » Fri Mar 05, 2010 12:30 am

Okay, the problem is that I have a collision check against a bullet and a family(whose members are the enemies)..The problem is I can't seem to pick that specific object in the event itself.

[code:2gy7kr96]
> Bullet OnCollision(Mafia)
>> CallFunction(BloodAnim) <-- this works
>> Mafia.Value('life') -= 1 // doesn't work. it doesn't do anything not even subtract from all the members of the family.. it just does NOTHING.
>> BulletDestory <-- this works as well


Okay so I tried the advanced collision:
>Advanced COllision (Bulle, Mafia) <-- both set to 'pick'
>> CallFunction(BloodAnim) <-- this works
>> Mafia.Value('life') -= 1 // nothing!
>> BulletDestory <-- this works as well

[/code:2gy7kr96]

I wonder how to get around this? I can't find myself checking against all type of enemy objects for collision.
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests