Dragging an actor
jack.zainudin@live.com
Member Posts: 25
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.
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