noCollide events

Ideas for Game Editor evolution.

noCollide events

Postby j2graves » Wed Sep 30, 2009 3:34 am

I want an event that takes place the instant the player is no longer colliding with another actor.

for example, he lands on a moving actor, and the changeparent action causes him to follow the platform. what I want, is something like, the instant he's no longer colliding with the platform, it changes parent back to (none)

example:
collision> top side> platform
changeparent (platform)

noCollide> top side> platform
changeparent (none)
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: noCollide events

Postby skydereign » Wed Sep 30, 2009 5:40 am

Are you not talking about the collision finish event? Collision Finish is an event triggered when an actor stops colliding with a certain actor. Most of the time you can get away with using collision finish, if you can't, you can either put the check in draw, or set a system that determines how many actors are colliding, through collide any actor, and collide finish with any actor. I can explain in more detail if what this is what you want, as there is already a collision finish.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: noCollide events

Postby j2graves » Wed Sep 30, 2009 9:55 pm

it doesn't work =P

the main actor followed the platform for a second, then the platform slid from under it, and then it followed it again, it slid from under it, and so on. it seems that 'collision finish' takes place even if the actor is STILL colliding!
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: noCollide events

Postby jimmynewguy » Wed Oct 07, 2009 12:43 am

there is collision free ex.

if(collisionfree)
{
}

i think it is
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: noCollide events

Postby DST » Wed Oct 07, 2009 12:46 am

Collision finish had issues in the older versions of ge, but in 1.3.9, it works like it should.

If you are using any kind of physical response, though, that knocks the player out of the platform but repeats, then collisionfinish will be triggered before you want it to.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: noCollide events

Postby Kalladdolf » Wed Oct 07, 2009 12:50 pm

If you're doing what DST just said, use a sensor which is a child of the main player and place it beneath the player. Put the CollisionFinish event on it.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron