HELP DDR

Get help using Construct 2

Post » Fri Oct 19, 2012 7:12 am

does anyone know how to make a DDR (Dance dance revolution ) type solution on the event sheet for eg
eg. object> on collision > enable > key press > destroy

cause i don't know how to enable it like that
B
6
Posts: 38
Reputation: 512

Post » Fri Oct 19, 2012 9:11 pm

Basically you need to check each time the player presses one of the arrow keys...

Every tick, on keyboard Right Arrow pressed, check if falling piece is touching scoring area.

Then you would check if a falling arrow marker is overlapping your "trigger" area (line the outlined arrows at the bottom of a DDR game).

If the two of them are overlapping while the appropriate arrow on the keyboard is held down, then you get points.

You can also check the distance between the falling arrow, and the trigger outline arrow. If its within 10 units, you score a "good" and if its less that 2 you get a "perfect" for example.

justifun2012-10-19 21:12:12
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Sun Oct 21, 2012 2:51 am

well cs2 doesn't allow me to do "every tick > on keyboard press" so can you upload a .capx for me cause i really don't understand.
B
6
Posts: 38
Reputation: 512

Post » Sun Oct 21, 2012 6:58 am

I just made a DDR game for my interactive graphic novel (still needs art, but it's pretty much functional). Check it out here...

http://www.scirra.com/forum/topic58969.html

Through trial and error, I came to basically the same methods that justifun mentioned, but only for making the arrows (or indicators as I call them) "respawn". Except you would actually use "On collision with" because it will only check for that once and not constantly like it would with "On overlapping."

I decided to compare my internal system clock to the appropriate time when an indicator was supposed to collide with the top. It's actually complicated and simple at the same time.

Also, Construct seems to be a lot more sensitive (at least for me) when comparing the distance for scoring a perfect vs a good. It's pretty much impossible to get a perfect if you only have a 4 pixel window to work with. You also have to take into account the speed of your indicators (I use bullet motion), and you'd have to be a robot to get a perfect in that window.

Here's my capx. Keep in mind that you have to use your own time windows.

http://www.wayofthesax.com/wip/rhythmminigame/rhythm%20game%20test.capx
B
14
S
5
G
4
Posts: 121
Reputation: 3,938

Post » Tue Oct 23, 2012 11:11 am

woa thanks!
B
6
Posts: 38
Reputation: 512


Return to How do I....?

Who is online

Users browsing this forum: kamens503, Yahoo [Bot] and 26 guests