Page 1 of 1

Animating things in time

Posted: Fri Nov 23, 2012 1:44 pm
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.

Re: Animating things in time

Posted: Fri Nov 23, 2012 5:22 pm
by Lafolie
Possibly the most confusing explanation of something I've ever read, hehe. Please post source code :)

Re: Animating things in time

Posted: Fri Nov 23, 2012 5:42 pm
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>

Re: Animating things in time

Posted: Fri Nov 23, 2012 6:57 pm
by Zeliarden
Just use simple timer and draw when it is time. Here is an example

Re: Animating things in time

Posted: Sun Nov 25, 2012 3:14 pm
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?