Problem with rotate and spawn
Hi all, first of all I'm very new to all this so baby steps would be great in any answers I receive haha! I'm following this tutorial:
![](https://img.youtube.com/vi/EoyNhvqujuU/0.jpg)
Basically everything he is doing in this tutorial is exactly what I need to do. However, I've done his steps exactly and I am not getting the same results. First of all my base image of my cannon is pointed upward and in the tutorial his is 90 degrees to the right so I'm not sure if that has anything to do with it. Everywhere I touch the cannon rotates but it is off to the left by what seems to be 90 degrees. I can fix that by setting the rotation of my image to 270 but then other things just don't seem right although it does rotate to where I touch on the screen. Btw I'm doing touch not mouse click like he is in the tutorial.
Next my actor is spawning in the opposite direction I click and only when I click directly on the cannon. Maybe I'm confused about the controls? I'm assuming when your game is for iPhone you select touch instead of mouse button?
Something is not right and the more I write here the more confused I'm getting. Any ideas what the heck I'm missing? Thanks!
![](https://img.youtube.com/vi/EoyNhvqujuU/0.jpg)
Basically everything he is doing in this tutorial is exactly what I need to do. However, I've done his steps exactly and I am not getting the same results. First of all my base image of my cannon is pointed upward and in the tutorial his is 90 degrees to the right so I'm not sure if that has anything to do with it. Everywhere I touch the cannon rotates but it is off to the left by what seems to be 90 degrees. I can fix that by setting the rotation of my image to 270 but then other things just don't seem right although it does rotate to where I touch on the screen. Btw I'm doing touch not mouse click like he is in the tutorial.
Next my actor is spawning in the opposite direction I click and only when I click directly on the cannon. Maybe I'm confused about the controls? I'm assuming when your game is for iPhone you select touch instead of mouse button?
Something is not right and the more I write here the more confused I'm getting. Any ideas what the heck I'm missing? Thanks!
Answers
Touch is Pressed means that you clicked/tapped on the actor. Mouse Button is Down means that you clicked/tapped anywhere in the scene. Either can be used with any device or on a Mac.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User