Creating a Level
by Katrina Konz · in General Discussion · 02/18/2009 (2:02 pm) · 2 replies
I have set up the Whack a mole Tutorial Game but i want to tweek it a bit so that I can generate levels if you hit a certain number of moles in the level before the timer runs out. I however have been playing with the code but have yet to get it to work. If anyone has any ideas or code samples to generate this functionality that would be great.
#2
02/18/2009 (7:30 pm)
@Katrina: How I would approach the problem is that you have the moles pop up at certain intervals, and also you would allow a maximum amount of the moles to pop up at once. With the two variables that control that, you can create "levels" by decreasing the interval at which the moles pop up while at the same time gradually increasing the maximum amount that can pop up at once. Sort of the same way that Tetris speeds up the intervals when the blocks drop, and the speed at which they fall. Hope that helps.
Torque Owner Shane09