Collision Mask

Ideas for Game Editor evolution.

Collision Mask

Postby jazz_e_bob » Sat Oct 09, 2004 7:29 am

The ability to assign an animation as an actors collision mask.

This would allow smooth predictable collisions on complex animations. It would also pave the way for isometric games where collisions should only occur with the "base" of the actor.
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Sat Oct 09, 2004 12:37 pm

You can do this now:

- Add a new actor (your mask)
- Add the mask animation
- On Create Actor event, add the Visibility State action
- Change the state to "Don't draw, but allow events"
- Make your "real actor" the parent actor

In your collision events, just test collisions with your mask actor
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Sat Oct 09, 2004 9:40 pm

Brilliant. Thanks mate! :)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest