Incorrect spawn location
scott.m.rowley
Member, PRO Posts: 16
I have a game I'm working on (shocker!) and when I touch a button it highlights the button to confirm what kind of actor I'm going to spawn. You then touch down again and it will spawn that type of actor where you've touched down. The issue I'm having is that my scene is larger than a single screen. I allow for swiping to see the rest of the map and if you do this and then touch the button and try to spawn the new actor goes to the original screen X,Y coordinates instead of the actual full screen X,Y coordinates. (This is all probably clear as mud so I'll attach a video).
Comments
You have to add the camera origin position to the x and y coordinates.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Can you tell me how I can find that? I thought I remember seeing it also but now I can't.
You'll need to unlock the actor by double-clicking on it within the scene and then clicking the lock to convert it to an instance in order to access the scene attributes in the Attribute Browser.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Ahhh, yes. I forgot about the unlocked actor thing. Thanks!
Works perfectly, many thanks. Struggled for at least a couple of hours trying to figure it out on my own.
You're very welcome.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User