Actor turning

Non-platform specific questions.

Actor turning

Postby Troodon » Thu Jan 12, 2006 5:55 pm

:oops: I know that this can sound stupid for you pros, but how can I turn my actor. I meen that how can I make this:

1.a car is driving and we see it from up
2.when I press for example -space-, it will shoot a ball from one cannon in front of the car
3.when I press -right- the car turns to right
4.after turning the car 90 degrees, I press -right- and the car shoot the ball from the cannon, not from the left side of the car

Please answer in my email: mike.touati@gmail.com
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Thu Jan 12, 2006 7:36 pm

After change the car animation from right to left, you need change the shoot direction.

Some thing like this:
Right: xvelocity = 5;
Left:xvelocity = -;
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

re:

Postby Troodon » Fri Jan 13, 2006 1:28 pm

Thank you!
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

re:

Postby Troodon » Fri Jan 13, 2006 3:36 pm

er...Must I change animation and all actor events if I want to rotate my actor?
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Fri Jan 13, 2006 4:01 pm

Go to the Help menu, and look the tutorial:
Demo Making Of -> Platform Game
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

re:

Postby Troodon » Fri Jan 13, 2006 4:52 pm

I've looked all the tutorials wich are available and I don't mean that. I mean that when I press one button in the game mode, the actor rotates 360 degrees without changing the animations.
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Fri Jan 13, 2006 5:12 pm

You can't rotate the actor, sorry.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

re:

Postby Troodon » Sat Jan 14, 2006 7:52 am

I downloaded your asteroids game where the ship turns with animation forward and animation backward events. But the most amazing thing it's that the ship shoots the shot allways from the front of the ship. Eden when the ship turns. I found this code in your shot, is it this the code with makes shot fly in the right direction?
angle = (ship.animpos/ship.nframe)*360.0;
directional_velocity = 10;
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Sat Jan 14, 2006 3:59 pm

Yes, with this code you tell to shot actor to move in the direction pointed by the current frame animation in the ship actor.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron