Page 1 of 1
Actor collisions?
Posted:
Sat Mar 13, 2004 8:23 pm
by phractus
Is there a way without havin to do a bunch of scripting to have it so actors cant move Into another object? I havent gotten the collision controls yet:(....
I found the code that Jazzebob wrote for circular objects, but wasnt sure where/how to use it.
~peace~
Posted:
Sat Mar 13, 2004 8:54 pm
by ingsan
If u want to stop on collision with another actor, u can do the following without scripting :
On Actor,
add Event Collision with repeat enabled
add Action To Anteriour Position
Close
Close
and if u want ur actor to step on another actor an collision (like to walk on a step, a circle on the ground...) u can use Physical Response instead of Anteriour Position.
Hope that i helped u
Posted:
Sat Mar 13, 2004 9:16 pm
by phractus
Ok i tried this a few different ways with no luck. Do i put this on the walking actor or on the actors to calide with. Im ganna go check out some of the tutorials see if they have any examples.
Posted:
Sat Mar 13, 2004 9:37 pm
by ingsan
What do u want ur actor to do exactely ?
Posted:
Sat Mar 13, 2004 9:45 pm
by phractus
I just want it to stop at the exterer of other actors(buildings, walls..etc). Ill play with it more and figure it out. Im wondering if b/c i used the actor.xscreen, actor.yscreen for movement if the colision works of another variable maybe?
Posted:
Sat Mar 13, 2004 9:57 pm
by ingsan
do u have an email adress? Ftp's not working very well
i'm sending u something.
Posted:
Sat Mar 13, 2004 10:00 pm
by phractus
If its not big you can send it to
phishpage@yahoo.com. If its something big i need to set up my pop on this computor(just put linux on this week).
Posted:
Sat Mar 13, 2004 10:31 pm
by ingsan
so
Posted:
Sat Mar 13, 2004 10:32 pm
by phractus
Ok i got our example. I think im having problems b/c of how i set up the movement. Instead of using x+=3 for movement i used EventActor.xscreen +=3. Im ganna play with the variables and stuff and see how it effects things. Thanks for the example.
~peace~
Posted:
Sat Mar 13, 2004 11:11 pm
by ingsan
Posted:
Tue Mar 16, 2004 7:46 am
by phractus
after having problems figuring out anterioor position i think im just ganna use the CollisionFree in my movement code, see if that works.