I've made a post before and got some help but it didn't really do the trick, so now I'm asking again.
I want to be able to do a very simple thing. I want my sprite to move as long as the user touches the screen on a certain position, in a direction based on where the user touches.
Things I've tried and problems I've encountered so far:
-I've tried simply scheduling a method that moves the player, and is unscheduled on TouchEnded. The problem with this was that I was not able to pass on anything to the method to be scheduled. I temporarily solved this by scheduling different methods for every location the user could touch, this seemed very unclean to me though so I deleted it again. It also gave me problems with the touchesMoved method.
-I've tried using a global CGPoint that indicates the "current Direction", so that I could simply schedule a method that calls something like "moveInCurrentDirection", global CGPoints don't seem to be possible though. I've tried and it always gives me an error in assignment or tells me I'm trying to get x and y from something that's not a struct/union when I've clearly defined it before.
I'm really stuck at this point, so any help is greatly appreciated, since I don't know what else I could try here.