Actor collisions?

Talk about making games.

Actor collisions?

Postby phractus » Sat Mar 13, 2004 8:23 pm

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~
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Sat Mar 13, 2004 8:54 pm

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 :wink:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Sat Mar 13, 2004 9:16 pm

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.
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Sat Mar 13, 2004 9:37 pm

What do u want ur actor to do exactely ?
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Sat Mar 13, 2004 9:45 pm

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?
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Sat Mar 13, 2004 9:57 pm

do u have an email adress? Ftp's not working very well :? i'm sending u something.
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Sat Mar 13, 2004 10:00 pm

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).
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Sat Mar 13, 2004 10:31 pm

so :?:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Sat Mar 13, 2004 10:32 pm

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~
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby ingsan » Sat Mar 13, 2004 11:11 pm

:)
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby phractus » Tue Mar 16, 2004 7:46 am

after having problems figuring out anterioor position i think im just ganna use the CollisionFree in my movement code, see if that works.
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron