When the user clicks wherever I want "Hero" to go there. =/
Simple as that I'm affraid! Any help please?
Strangely enough, after writing my reply. The post wasn't there anymore Here's my replay anyway:
This is how we did it in them old days.
1. Make your hero a ball object. Stop its movement at start of frame.
2. Make an active object with an outline of where the hero should "stop"
3. Make another active object. When clicking set the X and Y coordinates to XMouse and YMouse, set the hero to look in direction of that object and start movement.
4. When the hero collides with either of the two mentioned objects, stop his movement.
- Ok, you must admit that was the most creative cussing this site have ever seen -
Thank you, Phreddy! Sorry for deleting the topic, I remembered an old way of doing it just after posting and thought I use that. However this method works better for me! Thank you very much!
You could set the Y position of the object in step 3 the same as the hero.
Alternatively you could do it this way.
1. When clicking, set one of Hero's alternable values to XMouse.
2. If Hero's X position is less than that value, set it to X("Hero")+1
3. If Hero's X position is more than that value, set it to X("Hero")-1
This will however not stop the Hero from walking over things you don't want him to be able to walk over. Could be fixed without much trouble though.
- Ok, you must admit that was the most creative cussing this site have ever seen -
"Thank you, Phreddy! Sorry for deleting the topic, I remembered an old way of doing it just after posting and thought I use that. However this method works better for me! Thank you very much!"
Dont delete topics! :I Even if you know the answer, its nice to have the information up incase someone else is trying to accomplish the same thing you are ;D