Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • help with cooking game
« previous next »
  • Print
Pages: [1]

Author Topic: help with cooking game  (Read 2233 times)

Offline coreystranick

  • Exemplar
  • *
  • Posts: 1,085
help with cooking game
« on: June 13, 2009, 04:33:35 PM »
Ok, well I am making a game that requires you tochop food and such. Then the quality is based off what you did.

how would I be able to make it so you can press the button lets say C, and record how many times you hit it, then if it is within a certain range it is great,good, bad,
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: help with cooking game
« Reply #1 on: June 13, 2009, 08:04:41 PM »
This shouldn't be so hard.
Just have an event with key input thingy.
Have a conditional branch check if you pressed the right button.
If yes: Add 1 to a variable.
Wait command "0,2"(or something, based on the animation).

In the end of the thing(when the time runs out) have a conditional branch see if the variable is 'less than or equal to' a certain number for "Bad".  'Greater than or equal to' a certain value for "Great jorb!" and then the else handler for "Good".
In other words as an example:  If 5 or below: bad. If 10 or more: great. If none of those are right(6-9): good.

I hope you get it.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline coreystranick

  • Exemplar
  • *
  • Posts: 1,085
Re: help with cooking game
« Reply #2 on: June 14, 2009, 03:00:37 AM »
yup got it, thanks Prpl.
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • help with cooking game
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum