Hi, I'm making a sniper app and I want to make it so you can drag the scope and move it around when you drag it on the screen, what behaviours would I need for that, also I'm using GameSalad on WIndows.
How do you Constrain the actors x and y location to your touch location.
I think you are getting ahead of yourself, this is a pretty basic concept, and if you don't build a solid foundation you are going to find yourself in deep water. Please take some time and go through the entire cookbook and watch every youtube video you can find. You will be so much better prepared for what you want to do.
Comments
http://www.deepblueapps.com/doodle-sniper/
Darren.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
if pressed
behavior : constrain
self position x to 'device, touch pos X'
self position y to 'device, touch pos Y'.
if you've got a camera you need to add an offset..
Search the forum for a more detailed reply, or GS helper / YouTube for a tutorial.
constrain self.position-y to device.mouse.position.y
i hope thats what you trying to do.
Please don't make multiple discussions for the same thing.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left