I'm trying to figure out what the best way is to let my player sprite move to where the Mouse is.
What would be really helpful is a behaviour that will allow me to set the player movement speed as well as letting him move to the current mouse.x and mouse.y I know there must be a way, I am just too noob to figure it out it seems. <img src="smileys/smiley9.gif" border="0" align="middle" /> If I set it to current mouse X or Y with position it jumps there instead of moving towards it. I have coded something klike this before saying:
X = X++1 until the mouse is let go but how do I set it in C2?
I suppose I could use 'On Every Tick' but that seems kinda wasteful?
How possible will it be to also restrict the Y movement?
So lets say I click on a co ordinate the player will move towards the x co-ordinate (left and right only) and not move up or down at all?
There must be a way but I would maybe think that it's such a common control interface in multiple games that it will have a behaviour dedicated to this kind of movement.