Making actor move another way.

Talk about making games.

Making actor move another way.

Postby Hyperyon » Mon Aug 07, 2006 12:27 pm

Is it possible to make actors move towards like the one in this here game?

Image
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Hyperyon » Tue Aug 08, 2006 12:14 pm

I mean making the actor move north-east when I press the up key. Like in the image 8) :?
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby irblinx » Tue Aug 08, 2006 12:42 pm

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
irblinx
http://www.irblinx.me.uk/Crania.htm
Current projects: Crania deluxe for Mac, iCrania
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score

Postby Hyperyon » Tue Aug 08, 2006 1:13 pm

Ahhh! Didnt cross my mind. That sounds simple. :) Thanks.
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Hyperyon » Tue Aug 08, 2006 1:19 pm

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? :shock:
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Fuzzy » Tue Aug 08, 2006 8:11 pm

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.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Hyperyon » Wed Aug 09, 2006 7:17 am

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 :D
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron