WhackaMole

● ARCHIVED · READ-ONLY
Started by mharr111 3 posts View original ↗
  1. Hey guys,

    So I've been trying to do a whack a mole mini game through events. I was trying something along the lines of having an animation/icon change appear over various holes using regions, and then have it disappear if it is touched or a certain time passes. I can't seem to figure out exactly how to piece this together though.

    Is this something only for scripting, am I on the right track, or if anyone has done something similar could you point me in the right direction.

    Thanks
  2. That is definitely possible with events.

    I'd put an event on each hole and one parallel process event somewhere else as some kind of timer. The first page of the "hole-events" remains blank, the second page actually shows the "mole" and does whatever should happen if you trigger it the way you want.

    The second page should only trigger when a variable has a certain value. This value should be different on each "hole-event". That way each you can just switch the value with the parallel process to switch between different holes.

    If you want multiple moles or whatever to show up at the same time, you can just add a third page on each hole you want and let them trigger on the same value. You could also use multiple switches instead of a variable, but I think a variable is more concise.

    Thats how I would do it. Haven't tried it or anything, but it should work that way.
  3. here's what i did to make something similar, i turned the player into a cross hair and i created events with sprite animation and there own random movements.

    I then told each event that  when the player/cross hair clicks the enter button on the event it 'plays dead' you could slap a variable into how often it gets hit how long till it resets, what sequence it starts back at, etc, worked for me :)