Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
diagostimo

pacman

Question

hi, so im making a custom pacman game that you can play via arcade machine, and when you collect the coins in game they plus 1 to your gold count, i can set a main timer on the map eg countdown from 30, and when you collect a coin it gives 1 gold then activates self switch a to a blank graphic, that is preconditioned to deactivate self switch a when the timer meets 0, and the main timer for the page will constantly refresh when it runs to 0 so all the coins will be on a constant reset after 30 secs, but what i realy need is self timers so they reset individualy after pickup, any ideas how i would do this ?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

On the first page, keep everything the way you have it, except after giving the player money turn one of its self switches on and on the second page set its graphic to nothing, set it as a parallel process; then add the commands wait 600 frames, or 1200 frames if you are using smooth mode (regular mode runs at 20fps; smooth mode runs at 40 fps)

then after the wait, turn the self switch off. Now each coin has a separate timer.

Share this post


Link to post
Share on other sites
  • 0

No problem :)

normally it would; however when in a parallel process, the event is processed at the same time as other events (well technically it doesn't happen at the exact same time, but close enough) so thus it simply waits that amount of time before that individual event processes the next command.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...