Touch X, Y detection on actor not screen
CORE Game
Member, PRO Posts: 280
Hello,
I have a huge problem with my platform game, I have 2 actors one placed far left bottom another far right bottom
the one on the right to jump
the on on the left has an image of 2 arrows one to the right another to the left, to move the main player.
if the touch =< than 140 then it will move left and if it is >140 and less than 260 then it will move right
however If I touch both left and jump the actor will jump right and continue moving right.
he is considering the (jump) as a location of the first touch.
hope i explained it well .. yet I am sure it looks messy.
I have a huge problem with my platform game, I have 2 actors one placed far left bottom another far right bottom
the one on the right to jump
the on on the left has an image of 2 arrows one to the right another to the left, to move the main player.
if the touch =< than 140 then it will move left and if it is >140 and less than 260 then it will move right
however If I touch both left and jump the actor will jump right and continue moving right.
he is considering the (jump) as a location of the first touch.
hope i explained it well .. yet I am sure it looks messy.
Comments
here is the download
https://www.dropbox.com/s/wdbt5g1ywdcottq/Test spel.zip
good luck!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I am using iPhone
The issue is the game is not accepting more than 1 touch on the screen
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
why using multitouch? the player might jump first and then move or move then jump or press them together I cannot really tell gamesalad which one is touch 1 and which is 2 ... it all depending on the user action.
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
new.Touch1.x = touch1.x + cam.origin.x
new.Touch1.y = touch1.y + cam.origin.y
more explanation is required please
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I faced few problems where :
1-touch jump and arrows at the same time will not jump to the right direction.
2-while touching the left arrow (and holding) if i slide my finger to the right arrow some times it work and he turns right some times he doesn't.
Just now I figured a solution for both of those problems But I will bookmark your website because the way you are making your controls is very interesting and I would love to use them for my next game (not this game) .
If anyone wants to see my logic behind the movement I will be glad to share them.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
The thing is I am trying to create a unique control which make the player to worry about (how to control) less .. and enjoy the game play.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
.