Search found 14 matches

by hiccupface
Wed May 13, 2015 5:23 pm
Forum: Support and Development
Topic: Trying to make a power up affect player movement...
Replies: 5
Views: 3670

Re: Trying to make a power up affect player movement...

Thanks for replying, Rickton. I went through two attempts. Firstly, if a trigger collision is detected, the player x and y positions will be affected... but only for one frame. Note, this is running in love.update(). function love.update() -- detect collision with powerUps and powerUps effects! func...
by hiccupface
Wed May 13, 2015 3:10 pm
Forum: Support and Development
Topic: Trying to make a power up affect player movement...
Replies: 5
Views: 3670

Trying to make a power up affect player movement...

Hi LÖVErs. I seem to have hit a little roadblock in my game development. Basically, I'm trying to have a power up turn my player's movement into a slightly jittery mess by adding love.math.random() to it's X and Y positions. When I manually add this to the draw code for the sprite, it works just fin...
by hiccupface
Sun Apr 26, 2015 2:26 pm
Forum: Support and Development
Topic: Scaling my player sprite in realtime?
Replies: 3
Views: 2476

Re: Scaling my player sprite in realtime?

Hey MattyAB. Thanks a ton for the help – it worked perfectly. I totally forgot about the scale parameters when calling an image! Actually, I'm using anim8, so instead of calling: love.graphics.draw(crusader.img, x, y, 0, crusader.scalex, crusader.scaley) I called: animation:draw(crusader.img, crusad...
by hiccupface
Sun Apr 26, 2015 12:21 am
Forum: Support and Development
Topic: Scaling my player sprite in realtime?
Replies: 3
Views: 2476

Scaling my player sprite in realtime?

Hi all! I'm a new guy here who has recently discovered both Love2D and Lua and I'm having a blast learning both of them. It's so much fun! Anyway, onto my question: In my game I'd like my player sprite to increase in size every time it collides with an enemy sprite, but I'm just not sure how. I have...