Animating things in time

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
marcin19962
Prole
Posts: 3
Joined: Fri Nov 23, 2012 1:23 pm

Animating things in time

Post by marcin19962 »

Not good subject name, but I didn't know better.
My problem, is that I'm trying to draw things on screen respectful to their position in time, like I have 3 variables:
1. 2304, C
2. 5804, D
3. 5810, C
What I'm trying to achieve is to be able to draw those things, in their respectful time (first argument), and what kind of thing (second argument).
I was trying to make it but I have NO IDEA where / how to start with it.
If anyone would be able to give me an good explanation or just example, I'll be really happy.
Additional, if for example I'm at 2 and 3 variable, I need to draw BOTH of them, but first one will be less faded than second one.
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Animating things in time

Post by Lafolie »

Possibly the most confusing explanation of something I've ever read, hehe. Please post source code :)
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
marcin19962
Prole
Posts: 3
Joined: Fri Nov 23, 2012 1:23 pm

Re: Animating things in time

Post by marcin19962 »

Well
marcin19962 wrote:I was trying to make it but I have NO IDEA where / how to start with it.
I think I forget to mention that first argument of these 3 variables, means time in miliseconds <It's supposed to be in time with music, something like rhythm game>
Zeliarden
Party member
Posts: 139
Joined: Tue Feb 28, 2012 4:40 pm

Re: Animating things in time

Post by Zeliarden »

Just use simple timer and draw when it is time. Here is an example
Attachments
timer.love
(494 Bytes) Downloaded 110 times
marcin19962
Prole
Posts: 3
Joined: Fri Nov 23, 2012 1:23 pm

Re: Animating things in time

Post by marcin19962 »

But, it looks like that when more objects are in list, the lower fps is, so when i'll have for ex. 1000 objects it's going to lag as hell?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests