Variables not changing thier state

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
cookie
Prole
Posts: 3
Joined: Mon Dec 14, 2015 3:57 pm

Variables not changing thier state

Post by cookie »

I've got an problem! In love.draw function I've got an powerball picture being drawn. But when it is in the love.draw the uprender variable doesn't change it state! It remains the same state and the player floats(I know why he floats. Because of uprender being on).
Attachments
BOOX.love
(247.45 KiB) Downloaded 58 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Variables not changing thier state

Post by Nixola »

It doesn't always float here. Video link.
Sorry, I'd help more but I can't really understand the code right now and I don't have much time - anyway, I noticed you posted the same topic twice - the first post by a user has to be validated by an "approved" member, in an attempt to fight spambots (so they only annoy us, instead of everyone. :x ) before anyone can see it, so you had to get approved before being able to see your own post. Welcome to our community! ^^
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
cookie
Prole
Posts: 3
Joined: Mon Dec 14, 2015 3:57 pm

Re: Variables not changing thier state

Post by cookie »

Nixola wrote:It doesn't always float here. Video link.
I meant player floats after falling of the platform
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Variables not changing thier state

Post by Nixola »

Then, sometimes the player floats even before touching the platform, while sometimes it does not.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
cookie
Prole
Posts: 3
Joined: Mon Dec 14, 2015 3:57 pm

Re: Variables not changing thier state

Post by cookie »

Nixola wrote:Then, sometimes the player floats even before touching the platform, while sometimes it does not.
I think this happens because platform is getting generated before player even has time to fall to ground
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest