how do you make the actor rotate with with the mouse

Game Editor comments and discussion.

how do you make the actor rotate with with the mouse

Postby totalnoob » Mon Sep 04, 2006 12:22 am

an actor, "Bob" can move up down left right and diagonaly but only faces one direction and shoots one direction i would like to know how i could make him rotate following the mouse and shoot in the direction he is facing at all times.
Thanks -total noob :D
totalnoob
 
Posts: 11
Joined: Sun Sep 03, 2006 10:40 pm
Location: michigan
Score: 0 Give a positive score

Postby makslane » Mon Sep 04, 2006 12:57 pm

You need to have prerotated images.

Look the Asteroids demo:
http://game-editor.com/games/asteroids.zip
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest