Are you having it vectortoangle to mouse position? Make sure its something like this: vectorToAngle(mouse.position.X-self.position.X,mouse.position.Y-self.position.Y) Or something like that!
But when you say me vectorToAngle, i don´t find any behavior with that attribute. I do not know if i need to build a constrain attribute or create a rule. And then where to write (mouse.position.X-self.position.X,mouse.position.Y-self.position.Y)
Because for me is it very hard for me now. What do you mean with "mouse.positionX- self.positionX" I look that in other posts but i don´t understand what to do
When we say "self" we mean the actor you're editing.
In your case:
Contrain attribute Game.tanker.rotate TO VectorToAngle(game.mouse.position.X-tanker.position.X,game.mouse.position.Y-tanker.position.Y)
Dont use "rotate to position"
Secondly: You need to change your image. cause gamesalad on rotates around center. so you need to extend the space behind the turret så i look like it rotate currectly....
Like i said earlier... i will gladly take a look at it. its always easier learn by its done right the first time.
Comments
_________________
http://www.thatgameforum.com/
http://gshelper.com/
http://www.youtube.com/user/GameSaladCookbook#p/
http://gamesalad.com/wiki/
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./Home.html
http://www.gamesalad.es/
http://thatgameforum.com/threads/gs-videos.360/
my email: calvin9403@hotmail.com
Make sure its something like this:
vectorToAngle(mouse.position.X-self.position.X,mouse.position.Y-self.position.Y)
Or something like that!
Here a image http://dl.dropbox.com/u/6352083/duda.jpg
But when you say me vectorToAngle, i don´t find any behavior with that attribute. I do not know if i need to build a constrain attribute or create a rule. And then where to write (mouse.position.X-self.position.X,mouse.position.Y-self.position.Y)
Because for me is it very hard for me now.
What do you mean with "mouse.positionX- self.positionX"
I look that in other posts but i don´t understand what to do
Regards
When we say "self" we mean the actor you're editing.
In your case:
Contrain attribute
Game.tanker.rotate TO VectorToAngle(game.mouse.position.X-tanker.position.X,game.mouse.position.Y-tanker.position.Y)
Dont use "rotate to position"
Secondly: You need to change your image. cause gamesalad on rotates around center. so you need to extend the space behind the turret så i look like it rotate currectly....
Like i said earlier... i will gladly take a look at it. its always easier learn by its done right the first time.
http://imageshack.us/f/89/sinttulotw.jpg
And i do not understand why "game.mouse.position.X-tanker.position.X" what is it the end?
http://www.utopiangames.co.uk/gamesalad/Help.png
Darren.
I think that i fall i the Constrain Attribute
self.Rotation
to
vectorToAngle( self.Position.X - game.Mouse.Position.X , self.Position.Y - game.Mouse.Position.Y )
I need a noob class about what it mean (anything.x-anything.x,anything.y-anything.y)
And Thanks everyone for their patience