Rotating Turret

jasonpbrucejasonpbruce Member Posts: 35
edited November -1 in Working with GS (Mac)
Hi again! I was wondering how I can make a turret that is stationary rotate and follow the mouse icon (actually I just want it to point where the user presses on the screen on an ipad so it will launch a missile at the exact point where pressed as well. Oh and I want to make it only when clicking on the top half of the screen. Does that make sense? Any help is greatly appreciated =)

Comments

  • CaptFinnCaptFinn Member Posts: 1,828
    I suggest TSB's Missile Command Template.
  • jasonpbrucejasonpbruce Member Posts: 35
    Believe me I really wanna get that one badly... just pretty poor right now, Jeff.I'm actually working on a missile command game too (thus the question on rotation). Hehehe I'm the best at art and graphics design but complete sh*t at understanding the programming aspects involved. I'd see if tshirtwould do a work in trade for it but judging from the graphics on his games I doubt he'd need my help =)Thanks for the tip though, I'll have to find a way to get$60 hehehe Cheers mate!
  • okimokiokimoki Member Posts: 159
    in the actor do a constraint on a rotation.. in the expression do:
    vectortoangle(game.mouse.position.x-self.position.x, game.mouse.position.y-self.position.y)

    hope that helps..
Sign In or Register to comment.