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?
- Attachments
-
- test.love
- (5.02 MiB) Downloaded 122 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!
Who is online
Users browsing this forum: Bing [Bot] and 2 guests