Page 1 of 2

Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 4:53 am
by Jagmaster
Ah, the old arrow sequence game. Often presumed to be a lame attempt to get people "Fit" by implementing a smelly vinyl-plastic sheet with arrow buttons to get people to get up off the couch (this is pre-kinect tech :P) it's versatility is often overlooked because it's usual tackiness. These type of minigames can be implemented into platformers or rpgs as a fight sequence, or a training session. It has also been used for filler in certain move-based games, for example, my brother has a game based off of Kung Fu Panda, that implements this genera into the boss fights, which added a neat "cinematic" element and broke away from the normal double jump and press X routine.

Now, the demo itself has nothing graphical due to the fact that the uploader is being fixed. But, with some minor tweaking, you could easily add some elements such as an opponent, or a background.

I tried to make it as easy to understand as possible, if anyone wants me to explain anything let me know.

Oh, and one more thing, I added some random MIDI music files in the mix as well. Tell me if you recognize any. ;)
Arrow_Sequence.zip
(236.41 KiB) Downloaded 238 times

Screenshot.jpg

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 6:49 am
by master0500
its better that a demo!
it a game
five star*****
and music doesn't work

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 10:45 am
by Camper1995
Great! I was wondering how to do this for a long time and now you've made a demo of it. Thank you. +

It reminds me of the GTA San Andreas where you dance with cars and press the numbers in the right sequence. :D

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 1:44 pm
by Jagmaster
master0500 wrote:its better that a demo!
it a game
five star*****
and music doesn't work


Thanks, glad you liked it. But the music didn't work?!? Ah well, you can look in the data folder and play the music from there. Either your sound card is not MIDI compatible, (Which it probably is) or the rand (random) function was set to 7. There are 6 music tracks, and if I set rand to 6, it wouldn't play track 6. Which was an awful shame because track 6 was an awesome song. :P

If this is the case, you could try clicking the text that says "Randomize music" and maybe that will work. If not, you can add your own music by editing the create actor event for the view. You will see a bunch of PlayMusic lines, you can carefully backspace them and put in a new one by clicking functions and then clicking Playmusic2. (Just make sure that the new line is in the same spot as the old one.) Then, you can copy that script and paste it in the mousebuttondown event for the "Randomize music" text. :D

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 1:50 pm
by Jagmaster
Camper1995 wrote:Great! I was wondering how to do this for a long time and now you've made a demo of it. Thank you. +

It reminds me of the GTA San Andreas where you dance with cars and press the numbers in the right sequence. :D


Glad you liked it :mrgreen:

The only thing that could be improved would be if the actor that created the arrows were a single actor instead of clones. Like I mentioned above, the rand function does not use the max number. So, I used clones and had the arrows change their state based on their creator's cloneindex.

Anyway, glad you all liked it. See if you can make it to level 6 and still maintain 100% accuracy. :P

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:22 pm
by lcl
I will try this soon! :)

But about rand(); it works just as it's supposed to.
If you set rand(10); the return will be between 0 and 9. :)

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:29 pm
by Jagmaster
lcl wrote:I will try this soon! :)

But about rand(); it works just as it's supposed to.
If you set rand(10); the return will be between 0 and 9. :)


Ah, right, but I have a switch that goes from 0 to 6, it doesn't play number 6 (Which is actually 7) so, I have to set rand to 7. (An edit to my last post, there are 7 songs XD)
Also, rand tends to favor the number in the middle.

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:31 pm
by schnellboot
no rand really is random

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:34 pm
by lcl
Jagmaster wrote:
lcl wrote:I will try this soon! :)

But about rand(); it works just as it's supposed to.
If you set rand(10); the return will be between 0 and 9. :)


Ah, right, but I have a switch that goes from 0 to 6, it doesn't play number 6 (Which is actually 7) so, I have to set rand to 7. (An edit to my last post, there are 7 songs XD)

That's how rand works, if you want it to return number from 0 to 6, you need to give it 7. :)

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:36 pm
by Jagmaster
I guess, but nothing in the computer world is completely random.

It still wants to favor three or four, (if you click that random button, sometimes you will get the same song 3 or 4 times in a row.)

@lcl: that makes sense I guess, it checks for a number in between. It would be nice if you could check between -5 and +7 or something like that. :roll:

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:54 pm
by lcl
Jagmaster wrote:@lcl: that makes sense I guess, it checks for a number in between. It would be nice if you could check between -5 and +7 or something like that. :roll:

And you can with a function that genious Bee-Ant once made!
Here: viewtopic.php?f=4&t=8646&p=63677&start=50

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 2:59 pm
by schnellboot
or dst's
Code: Select all
float xx=rand(23)+9;
:D

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 3:04 pm
by Jagmaster
Thanks guys, I'll try these. :D

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 3:38 pm
by Hblade
This is awesome! :)

Re: Arrow Sequence game template

PostPosted: Sun Aug 14, 2011 3:44 pm
by Jagmaster
Thanks!
:D