Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kAlekki

Pages: 1
1
Ask a Question / Re: Getting the mass of an actor.
« on: August 01, 2011, 03:27:37 am »
You actually can get the mass, you just have to use a code mode block:

Code: [Select]
_myAttribute = actor.getBody().GetMass();

where "_myAttribute" is the internal name of a number attribute in your behavior.

Thanks for reply, i fiddled the code and managed to create it so that it automaticly gets the mass, without having to set up an attribute for each actor separately.

Code: [Select]
for each(var actorInRegion:Actor in getActorsInRegion(_AntiGravity))
    {
        if (actorInRegion ! = null && !actorInRegion.dead)
        {
            actorInRegion.pushInDirection(270, actorInRegion.getBody().GetMass()*200);
        }
    }

2
Ask a Question / Getting the mass of an actor.
« on: July 31, 2011, 02:54:06 pm »
Hi, im trying to create an Antigravity behaviour, which pushes the actor entering the region, with force(200*actor mass), but i cant find a block which gets actor's mass. I dont want to have to create a custom value equal to their mass for every actor.

Thanks, kAle

3
Chit-Chat / Re: Recommend an Indie Game Thread
« on: July 21, 2011, 11:34:24 am »
Officer Alfred by Hempuli

4
Resolved Questions / Re: GUI Bug
« on: July 21, 2011, 09:00:00 am »
One of my friends has the exact same problem. Cant really recall who, though.

Pages: 1