touch control question...
goliath
Member Posts: 1,440
Ok guys, thanks for being patient with me for the last 2 days....
As of right now, in my gamesalad viewer, if you press the up arrow, my ship flies up. if you press down the ship flies down ETC.
I am wondering what is the easiest way to convert the touch controls for use on the iphone and ipod touch?
Basically I want my ship to fly around with the touch of your finger. Right now it just flies randomly....
As of right now, in my gamesalad viewer, if you press the up arrow, my ship flies up. if you press down the ship flies down ETC.
I am wondering what is the easiest way to convert the touch controls for use on the iphone and ipod touch?
Basically I want my ship to fly around with the touch of your finger. Right now it just flies randomly....
Comments
create 4 actors, an up actor, a down actor etc. put them on your screen and when up is pressed go up and do the same for the other ones... and instead of when key is pressed... make it when touch is pressed...
I think thats what you meant!
Good LucK!
when touch is pressed:
constrain self.position.x to mouse position.x
constrain self.position.y to mouse position.y
thanks
Good Luck!
did you enter it EXACTLY like this?:
when touch is pressed:
constrain self.position.x to game.mouse.position.x
constrain self.position.y to game.mouse.position.y
Edit: Oh yeah... make sure you add this in the actor you want to move around...
Good Luck!
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
basically the ship keep jumping around like crazy and its not smooth at all and doesn't follow my finger...
http://gamesalad.com/game/play/60995
Hope this helps!
Good Luck!
Good Luck!
You can download it like that, but its kinda a pain in the butt....
What I do is... Open up GS hit shared projects and click on the little pencil on the one that says For Goliath (Follow Mouse)
thanks again for all of the help... ill try again tomorrow
Is there any other movements that are triggered when you click on it?
Anyway, yeah I'm going to bed also.... I have to get up for work in 4 hours haha
Sooo..... just continue posting whats going on, on this thread and I'll see if I can help you tomorrow
Aight night
I just don't get it...
and have it triggered on a pressed/touched event. That way it will only follow your finger whilst your finger is touching the ship.
http://gamesalad.com/game/play/60995 This method also produces that.....
@Goliath, yes you can try this method, but if you have any kind of multitouching i.e. using two fingers it won't work either (yea if you cant get that to work.. try this method)
Good Luck!
@danny theres more than one way to do everything... and the way i said does work... no need to blatantly say it doesn't.... Its probably just not working because there are some overlapping rules...