This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-03-30 11:27:18

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

DDR Scratch collab

I got a great idea for a Scratch DDR game but I don't think I can make the whole game by myself. I can make the base, but not really anything else without other people helping.

MEMBERS
Programmers:
-BWOG
-Open
-Open
Artists:
-littletonkslover
-Open
Beta testers:
-adriangl
-Open
-Open
-Open

I'll say all the details after we have a few members.

Last edited by BWOG (2010-03-31 19:11:51)

Offline

 

#2 2010-03-30 12:44:39

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

Oh come on, at least look at it! (Also,  view hax: When I post this there will only be 2 views!)

Offline

 

#3 2010-03-31 08:48:02

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

What's wrong with this? And if we get the right people this could be the best DDR game on Scratch!

Offline

 

#4 2010-03-31 09:48:29

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

One thing that would be a problem is that the lag from the music makes it almost impossible to sync the arrows to the music in the online player. Another issue is that it can only hold a max of about 5 songs because scratch's compression isn't that good. I made a DDR like game, its called x-mas beats but it runs very poorly online.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2010-03-31 10:07:08

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

archmage wrote:

One thing that would be a problem is that the lag from the music makes it almost impossible to sync the arrows to the music in the online player. Another issue is that it can only hold a max of about 5 songs because scratch's compression isn't that good. I made a DDR like game, its called x-mas beats but it runs very poorly online.

Well I had an idea where there would be "song packs" that you would download then import into the game, so there are more songs then just the ones that come with it.

Offline

 

#6 2010-03-31 11:13:07

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: DDR Scratch collab

archmage wrote:

One thing that would be a problem is that the lag from the music makes it almost impossible to sync the arrows to the music in the online player. Another issue is that it can only hold a max of about 5 songs because scratch's compression isn't that good. I made a DDR like game, its called x-mas beats but it runs very poorly online.

Lag shmag. Using timers destroys lag completely. You can also change variables with FPS multipliers to perform at full speed. Syncing, again, perfect with timers.

Offline

 

#7 2010-03-31 11:26:44

Lord-Sprites
Scratcher
Registered: 2010-01-24
Posts: 500+

Re: DDR Scratch collab

RHY3756547 wrote:

archmage wrote:

One thing that would be a problem is that the lag from the music makes it almost impossible to sync the arrows to the music in the online player. Another issue is that it can only hold a max of about 5 songs because scratch's compression isn't that good. I made a DDR like game, its called x-mas beats but it runs very poorly online.

Lag shmag. Using timers destroys lag completely. You can also change variables with FPS multipliers to perform at full speed. Syncing, again, perfect with timers.

What exactly are timers?


http://ls.gd/tzhttp://ls.gd/aghttp://ls.gd/axhttp://ls.gd/tfhttp://ls.gd/lo

Offline

 

#8 2010-03-31 11:32:27

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: DDR Scratch collab

I think I can manage some graphics, or at least improve them.


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#9 2010-03-31 11:40:02

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

Even with timers, there may still be a lag in the songs themselves, the scripts and the motions of the sprites. This mostly applies to the online player though.

Yeah, the x-mas beats game isn't synced to a timer because it was easier to make that way. To program the arrows I set up a script that would just record my key strokes as I listened to the song. The arrows in the game are just me mashing random things on the keyboard. But the alternative of setting each arrows individually seemed too time consuming.

So taking Rhy's suggestion into consideration to program the notes for each song you need to code a set of arrows to come out for every unit of time (say 1 second). To do this you would have to listen to the song with a media player (windows media/vlc are good) and type out the set of arrows for each unit of time. This will result in the best accuracy but it is a very time consuming process.

A good tool for recording arrows would be to use a tool made for that purpose like step mania.
http://www.scratch.mit.edu/ext/youtube/?v=Ozpv3dyBy7s&feature=related

Follow the instructions in that video to make arrows then record it on note pad or something and put it into scratch.

Last edited by archmage (2010-03-31 11:51:35)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#10 2010-03-31 11:49:21

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

littletonkslover wrote:

I think I can manage some graphics, or at least improve them.

Ok, I'll add you.

Offline

 

#11 2010-03-31 11:52:40

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: DDR Scratch collab

So.......what do you need?


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#12 2010-03-31 11:59:18

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

So heres a question for BWOG: how do you plan on recording the arrows and how will you make them come out? The way you do this can mean 10 minutes to make a song or a whole day to make a song.

I had an idea for this, if you ever get around to the part where you make the songs I can make a flash app that makes it as easy as possible to record songs according to time intervals if you need something like that. The reason you cannot make such a tool in scratch is because you cannot just jump to any point in a song making it too difficult to match the sound in a certain moment with a set of arrows.

Last edited by archmage (2010-03-31 12:10:00)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#13 2010-03-31 12:14:16

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

archmage wrote:

So heres a question for BWOG: how do you plan on recording the arrows and how will you make them come out? The way you do this can mean 10 minutes to make a song or a whole day to make a song.

I had an idea for this, if you ever get around to the part where you make the songs I can make a flash app that makes it as easy as possible to record songs according to time intervals if you need something like that. The reason you cannot make such a tool in scratch is because you cannot just jump to any point in a song making it too difficult to match the sound in a certain moment with a set of arrows.

I don't know how I'll do it yet. But if you can make a flash program that would make it easier that would be nice.

Offline

 

#14 2010-03-31 12:23:05

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

Sigh....

So, if you have no idea how this is going to work odds are you will not be able to make it. Ok, so if you want to be successful then you should try to look at the code from my x-mas beats project (its pretty simple) and learn how it is made and try to recreate it. Then, if you don't want perfect accuracy then you can copy the general way it does things or if you want it to be as accurate as possible then you need to change the script so that it sends out arrows according to precise time intervals. I may write a flash app if you get to the point where you are having difficulty recording steps but everything else (most importantly making the steps come out) is up to you.

Last edited by archmage (2010-03-31 12:23:44)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#15 2010-03-31 12:23:13

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: DDR Scratch collab

So.......what do you need?


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#16 2010-03-31 12:25:32

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

littletonkslover wrote:

So.......what do you need?

Try making some arrows for now.

Offline

 

#17 2010-03-31 12:26:46

littletonkslover
Scratcher
Registered: 2008-12-12
Posts: 1000+

Re: DDR Scratch collab

BWOG wrote:

littletonkslover wrote:

So.......what do you need?

Try making some arrows for now.

What size? Big, or..........

http://images1.wikia.nocookie.net/__cb20090527194703/hetalia/images/9/9b/RussiaAnime.png


http://www.coxlab.org/images/rat_banner.jpg
That's the dark nature of capitalism. ~ Wonder Showzen

Offline

 

#18 2010-03-31 12:35:24

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

littletonkslover wrote:

BWOG wrote:

littletonkslover wrote:

So.......what do you need?

Try making some arrows for now.

What size? Big, or..........

http://images1.wikia.nocookie.net/__cb2 … aAnime.png

Small, preferably.

Also, archmage, your way seems a lot harder then the way I was thinking about doing it because you calculated the number of frames, and I have no way of doing that, so I can't copy the scripts from your project to mine.

Offline

 

#19 2010-03-31 12:47:51

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

BWOG wrote:

littletonkslover wrote:

BWOG wrote:

Try making some arrows for now.

What size? Big, or..........

http://images1.wikia.nocookie.net/__cb2 … aAnime.png

Small, preferably.

Also, archmage, your way seems a lot harder then the way I was thinking about doing it because you calculated the number of frames, and I have no way of doing that, so I can't copy the scripts from your project to mine.

No, I was suggesting you count every unit of time if you want it to be perfect, the x-mas beats scripts does not do that. The method with frames is the method that Rhy was suggesting and I just elaborated what that would mean. Mine uses lists to store the arrows and then calls out arrows when the list indicates some should come out which is the simplest possible way of doing things. How did you plan to make the arrows come out?

Last edited by archmage (2010-03-31 12:52:53)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#20 2010-03-31 13:09:37

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

archmage wrote:

BWOG wrote:

littletonkslover wrote:


What size? Big, or..........

http://images1.wikia.nocookie.net/__cb2 … aAnime.png

Small, preferably.

Also, archmage, your way seems a lot harder then the way I was thinking about doing it because you calculated the number of frames, and I have no way of doing that, so I can't copy the scripts from your project to mine.

No, I was suggesting you count every unit of time if you want it to be perfect, the x-mas beats scripts does not do that. The method with frames is the method that Rhy was suggesting and I just elaborated what that would mean. Mine uses lists to store the arrows and then calls out arrows when the list indicates some should come out which is the simplest possible way of doing things. How did you plan to make the arrows come out?

I plan on using the timer and having the arrows go out at specific times on the timer.

Offline

 

#21 2010-03-31 13:15:46

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

Ok, so if I understand you plan to code it something like this

There is a list of 0s and 1s in 4 lists (1 per arrow) that indicate what arrows should come out at each point in the timer. A loop goes though each value in the lists every time the timer changes and checks to see if any arrows should be spawned.

If you decided to make it poorly you you make it like this for every arrow

if(timer=number){
spawn arrow
}

This would be extremely time consuming and make it impossible to edit the arrows.

Last edited by archmage (2010-03-31 13:16:27)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#22 2010-03-31 13:23:09

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

archmage wrote:

Ok, so if I understand you plan to code it something like this

There is a list of 0s and 1s in 4 lists (1 per arrow) that indicate what arrows should come out at each point in the timer. A loop goes though each value in the lists every time the timer changes and checks to see if any arrows should be spawned.

If you decided to make it poorly you you make it like this for every arrow

if(timer=number){
spawn arrow
}

This would be extremely time consuming and make it impossible to edit the arrows.

How would it make it impossible to edit the arrows?

Offline

 

#23 2010-03-31 15:02:03

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

What, you mean are coding it like that? Thats no good...

Ok, if you want to make it like that you will need about 400 scripts like that for each song. You can replace all those scripts with just one and some lists. If you stack 400 of these scripts on top of each other it will slow the editor down and make it difficult to edit the script not to mention that you will have to look though so much code.

My choice of words was poor there, by impossible, I meant very unnecessarily difficult. Really, I very strongly suggest you use lists instead of if blocks in the way I described.

Last edited by archmage (2010-03-31 15:02:59)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#24 2010-03-31 16:03:45

BWOG
Scratcher
Registered: 2008-09-19
Posts: 1000+

Re: DDR Scratch collab

But I don't know how to use lists that way because I don't know how long Scratch takes when reading lists, so I can't make it check every .1 second, because it will take more then that.

Offline

 

#25 2010-03-31 16:15:58

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: DDR Scratch collab

When ever you store large amounts of data you should use lists. Also, I have not seen a difference in using lists and variables so there isn't a time difference.

You should make it like this

//for each arrow
if (item (time_point) of list right_arrow = 1){
broadcast (spawn right arrow) /replace with other spawning code if you want
}

forever{
change time point by 1
wait (0.1) seconds
}

Something like that would check every .1 seconds like you want it to (in theory).

Last edited by archmage (2010-03-31 16:16:37)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer