How to make the Game maker Player look where the mouse is facing?
-
Ok, I made a gamemaker game took me 9 days to work on 20 minutes a day and 1hour a week end, so that means I put in about 4 hours in it because i had 4 week ends in it, so forget about what I just said that has nothing to do with my question. This has something to do with my question. I want the player to look where the mouse is facing ok so this is the player http://i.imgur.com/fPlKB.gif go to that link to see it. and if my mouse if behind the player (for the first image) then how do I make the player look where the mouse in that direction, this sentence will make it easier, if the mouse if behind my player then I want it to look like this http://i.imgur.com/UDuWw.gif (go to the link to see). so how do I make it look backwards if the mouse is back? lol I repeated the sentence about 3 times, but I'm really serious, how do I do it?
-
Answer:
You can use code to check if the mouse is behind the player. for example put this is step if mouse_x<x {sprite_index=right} if mouse_x>x {sprite_index=left} (where left and right is the name of your sprites) Also I would love an example of the game when it's done ;) If you need more game maker help feel free to contact me on skype(dragoncoke1)
Mark at Yahoo! Answers Visit the source
Related Q & A:
- How To Make My Youtube Channel Look Awesome?Best solution by youtube.com
- How To Make Your Own Picture Look Ugly?Best solution by Yahoo! Answers
- How to make a video player?Best solution by Stack Overflow
- How to make furniture look a little antiquey and french?Best solution by Yahoo! Answers
- How can i make my Myspace music player?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.