lets say that there are actors falling cause of gravity and as i swipe my finger on the screen i simulate wind in the given driection, which moves the falling objects
Ok so this is what I would do: Make an invisible actor 480 320 and place it on the screen so it covers the whole scene. Make a game attribute called "wind" - integer Make a rule in the actor : When touch is pressed change self.pressed to game.touch.X change self.released to game.touch.X
Then another rule: When touch is release change self.released to game.touch.X
Then: If self.pressed > self.released (means you swiped left) Change game.wind to 1
If self.pressed < self.released (means you swiped right) Change game.wind to 2
AND THEN: In your player make a rule: When attribute game.wind = 1 Accelerate left
But you can ask any question in this topic and I'll do my best to help. And if I wouldn't know the answer , someone will ! Don't hesitate to ask for help. That is why the forum is here! Roy.
Comments
I don't know exactly what are you asking for? Do you want your actor to fly right/left once you make the swipe ? Please explain.
Make an invisible actor 480 320 and place it on the screen so it covers the whole scene.
Make a game attribute called "wind" - integer
Make a rule in the actor :
When touch is pressed change self.pressed to game.touch.X
change self.released to game.touch.X
Then another rule:
When touch is release change self.released to game.touch.X
Then:
If self.pressed > self.released (means you swiped left)
Change game.wind to 1
If self.pressed < self.released (means you swiped right)
Change game.wind to 2
AND THEN:
In your player make a rule:
When attribute game.wind = 1
Accelerate left
When attribute game.wind = 2
Accelerate right.
Hope it helps sorry for my English..
pd: where are you from? is ther a way can contact you if i need help?
But you can ask any question in this topic and I'll do my best to help.
And if I wouldn't know the answer , someone will !
Don't hesitate to ask for help. That is why the forum is here!
Roy.
I weep for the future...
QS
And so do ours!
QS