Search found 5 matches
- Sat Aug 17, 2013 11:42 pm
- Forum: Support and Development
- Topic: Mouse controlled player movement; help please
- Replies: 9
- Views: 6390
Re: Mouse controlled player movement; help please
I'm not exactly sure how to do it, but in theroy: You'd have a player's destinationX and destinationY value. Where ever the mouse clicks, make that the destinationX and destinationY value. If the player is not at that position yet, make the player move towards that position. I have tried to do this...
- Sat Aug 17, 2013 10:03 pm
- Forum: Support and Development
- Topic: Mouse controlled player movement; help please
- Replies: 9
- Views: 6390
Re: Mouse controlled player movement; help please
I'm not exactly sure how to do it, but in theroy: You'd have a player's destinationX and destinationY value. Where ever the mouse clicks, make that the destinationX and destinationY value. If the player is not at that position yet, make the player move towards that position. I have tried to do this...
- Sat Aug 17, 2013 10:01 pm
- Forum: Support and Development
- Topic: Mouse controlled player movement; help please
- Replies: 9
- Views: 6390
Re: Mouse controlled player movement; help please
You'll need to get a pathfinding library first, preferably one with coroutines. (So the game doesn't halt when each character is checking for a path) If your game is standard tile based it'll be easy-ish. You'll need to make sure the pathfinding algorithm is aware of your map format. i.e. how each ...
- Sat Aug 17, 2013 8:37 pm
- Forum: Support and Development
- Topic: Mouse controlled player movement; help please
- Replies: 9
- Views: 6390
Re: Mouse controlled player movement; help please
Thankyou kind sir!Robin wrote:Welcome! What exactly is your question?
I'm sorry for not making clear, my question was how would I go about making mouse controlled player, as Rhinoceros said "as per standard RTS style"
- Sat Aug 17, 2013 5:39 pm
- Forum: Support and Development
- Topic: Mouse controlled player movement; help please
- Replies: 9
- Views: 6390
Mouse controlled player movement; help please
Hai , As I'm sure you can tell I'm a newcomer to this site, to the language lua, and to this tremendous game engine LÖVE2D. I had the idea to make a top down 2d fighting game using traditional M.O.B.A controls (" q " " w " " e " " r " for each individual abil...