![Rolling Eyes :roll:](./images/smilies/ms-uhm.png)
Need help with moving a Sprite with a keyboard....
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Need help with moving a Sprite with a keyboard....
Well I pretty much copied the code in the Hamster tutorial...all I did was change the Sprite (picture). For some reason the sprite just follows my mouse around and I can't use any of the keyboard keys to move the sprite. I haven't seen anyone with the same problem so I'm not sure at all on why it's happening. Does anyone know? ![Rolling Eyes :roll:](./images/smilies/ms-uhm.png)
![Rolling Eyes :roll:](./images/smilies/ms-uhm.png)
- Attachments
-
test.love
- (5.02 MiB) Downloaded 119 times
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Need help with moving a Sprite with a keyboard....
Code: Select all
local x = love.mouse.getX( )
local y = love.mouse.getY( )
love.graphics.draw( imageplayer, x, y ) --The player
Kurosuke needs beta testers
Re: Need help with moving a Sprite with a keyboard....
I did not see that..I need to look at my code better next time.. thanks! ![I'M SO HAPPY I COULD SHIT A RAINBOW RIGHT NOW :awesome:](./images/smilies/ms-awesome.png)
![I'M SO HAPPY I COULD SHIT A RAINBOW RIGHT NOW :awesome:](./images/smilies/ms-awesome.png)
Who is online
Users browsing this forum: Google [Bot] and 1 guest