The Daily Click ::. Forums ::. Klik Coding Help ::. How do I do this?
 

Post Reply  Post Oekaki 
 

Posted By Message

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
29th January, 2014 at 29/01/2014 15:42:10 -

Dropped in from the start, read something about pixels, distance and guitar hero. I thought: do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem. Sorry if I skipped your BPM part of the game.

 
Image jenswa.neocities.org

Maltar Draco



Registered
  22/08/2013 19:25:19
Points
  215
30th January, 2014 at 30/01/2014 18:48:33 -


Originally Posted by Jenswa
Do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem.

At this stage, I'm starting to think that people are intentionally misunderstanding me. What I want is entirely to do with timing and absolutely nothing else. Each note needs to be told what time it is and must go to that.

Edited by Maltar Draco

 
Maltar Draco, I do PC gaming.

Pan-tosser



Registered
  24/10/2008
Points
  520

Has Donated, Thank You!
31st January, 2014 at 31/01/2014 23:15:41 -

I have to fuss up that I was not a lot of help. Their might be some sort of guitar hero algorithm out their. But I don't know of it, and haven't seemed to be able to find one either.

The level of complexity your looking for is probably out of my league.

I'm kind of wondering though. How many known values do your calculations have? Do you know any more info about the track besides the bpm and the notes?

 
https://www.facebook.com/nathon.brown.7

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
1st February, 2014 at 01/02/2014 00:44:52 -

Why does it HAVE to be time based?

Why not just use a predetermined time trigger for each note.

Set the note symbol to be launched from a starting point at a predetermined time so that when it reaches the fret bar you it coincides with the music.

This way you can control the speed of the note to match the tempo. I think you are over complicating the issue.

You just need to create a formula to work out the speed at which to launch the note based on the tempo of the music. Surely that is easier???

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
1st February, 2014 at 01/02/2014 13:20:10 -


Originally Posted by Maltar Draco

Originally Posted by Jenswa
Do you want the objects to move away from the viewer while maintaining an equal distance between them? Just like in 3D or perspective viewing? Because that might be the answer to your problem.

At this stage, I'm starting to think that people are intentionally misunderstanding me. What I want is entirely to do with timing and absolutely nothing else. Each note needs to be told what time it is and must go to that.



Not intentionally, just focused on the spacing part of your pixels which is a part of your problem and therefore of the solution. But it probably didn't help much.

Do you have a series of pictures linked with the timing of how you want it to function?

Because with BPM added it sounds like you just need to use that as a scaling factor to get your base time unit. But it is probably eaiser to use 1000 milliseconds as base. So that 1000 divided by BPM will give you your timesteps to play the notes.

However when BPM changes you need to recalculate that timestep number (1000/BPM I called it) and you need to play the 2nd note 2 times the difference faster (or slower) but the 10th should be ten times the difference faster (so slower).

You can either keep an array (or temporary ini) and recalculate everything or keep track of the time difference and the number of the note being played. Because when playing the 15th note you will need 15 times the time difference. And that skips the recalculation part.

If you have this 1000 ms based timing system up and working, the relative positions of your objects shouldn't be that hard anymore.

Getting your objects closer together and equally close to each other can be done easily by calculating the total length of all objects arranged along a line and than dividing the length by the number of objects (lets say: delta distance) and place your objects at delta distance from each other.

I hope this post is useful for you.

Cheers,
Jenswa

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click