Collision Events

Game Editor comments and discussion.

Collision Events

Postby phyzix5761 » Tue Jan 10, 2012 4:52 am

I have several collision events occurring between a normal actor and a filled region. Some times the collision registers but other times it doesn't. You can see an example in the latest build of Buddha Blocks. Why does that happen and how can I work around that?
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Collision Events

Postby master0500 » Tue Jan 10, 2012 7:38 am

An easy way of stopping an actor from moving through a tile is by controlling the speed (for instance setting a max speed).
That's what Sky' said
hope it helps
master0500
 
Posts: 409
Joined: Sun Jun 26, 2011 9:42 pm
Score: 27 Give a positive score

Re: Collision Events

Postby phyzix5761 » Tue Jan 10, 2012 1:41 pm

I've tried this and unfortunately it still happens. It happens even at the slowest speed possible, almost as if the region is not catching the collision at all. I have also tried putting a region around the monk character but the same issue occurs.
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score

Re: Collision Events

Postby skydereign » Tue Jan 10, 2012 6:45 pm

Then your problem is something else entirely. How you've setup collisions is extremely weird. If you are trying to make your own collision system, I would at least suggest that the player's feet should collide with the other actors, instead of the platforms colliding with it. That way it is far more efficient since only one actor is checking if it is colliding with several actors, instead of many actors checking if they are colliding with one. Normally I would recommend actually using PhysicalResponse, as well as setting your collision events to repeat.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Collision Events

Postby phyzix5761 » Tue Jan 10, 2012 10:37 pm

Trying some of your suggestions Sky. So far so good. Thanks!
phyzix5761
 
Posts: 261
Joined: Sun Feb 27, 2011 4:28 am
Score: 18 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest