Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PsychicHeart on Thu 09/03/2006 05:45:11

Title: DDR-ish system.
Post by: PsychicHeart on Thu 09/03/2006 05:45:11
greetings,
i have an idea, a pipedream if you will of a system like this:
to complete each game level, blocks will fall down the screen. As to not lose, you must click each block before it reaches the ground. I'm not sure if AGS's capabilites suit this, but i thought i'd ask anyway.
Title: Re: DDR-ish system.
Post by: Khris on Thu 09/03/2006 06:52:43
It's definitely possible and not too hard either.
Depending on the number of blocks, you could use objects or RawDraw functions to achieve this.
Some quite simple code in the repeatedly_execute and on_mouse_click and you're done.
Title: Re: DDR-ish system.
Post by: PsychicHeart on Thu 09/03/2006 07:22:20
about 10-25 blocks per level. I want it so that after two or three go down, the next three go down, then the next three and so on. Achievable?
Title: Re: DDR-ish system.
Post by: Khris on Thu 09/03/2006 08:31:40
Yes, no prob for AGS.
As for objects vs. RawDraw, it's important how many blocks will be on screen simultaneously, I think AGS's object limit is somewhere around 20, so no problem here, too.

Easiest method would be to use an array to store coords for the objects, move them in the rep_ex and use Object.GetAtScreenXY(mouse.x, mouse.y) in the on_mouse_click to handle clicks.