Making actor move another way.
Posted:
Mon Aug 07, 2006 12:27 pm
by Hyperyon
Is it possible to make actors move towards like the one in this here game?
Posted:
Tue Aug 08, 2006 12:14 pm
by Hyperyon
I mean making the actor move north-east when I press the up key. Like in the image
Posted:
Tue Aug 08, 2006 12:42 pm
by irblinx
You have to program the main actor movement to, for instance, a key down event. Therefore just make the up-key key down event script move the actor in both the x & y axis at the same time
Posted:
Tue Aug 08, 2006 1:13 pm
by Hyperyon
Ahhh! Didnt cross my mind. That sounds simple.
Thanks.
Posted:
Tue Aug 08, 2006 1:19 pm
by Hyperyon
Oh, heres another one. Making the player move that way will bring more obligations.
For example I want the player to collide with the sides of an area like in the image. Its hard placing square filled regions on those kind of edges. Can the regions be rotated to fit on the sides?
Posted:
Tue Aug 08, 2006 8:11 pm
by Fuzzy
Collisions occur against the edges of pixels, so if you use a animation rather than a filled region, you can achieve the effect you want.
Make an actor, and draw an image in the shape of the area you want to collide against. Somewhat like a shadow. now assign that to the actor and put its Z-depth below the visual images. THis is only if each square isnt its own actor. Collisions are not against 100% alpha pixels.
Posted:
Wed Aug 09, 2006 7:17 am
by Hyperyon
Yeah. I did that but filled regions are faster:( This might seem far fetched but maybe Makslane will allow rotation on them in a future G.E. version