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 »
  • Before the bomb explodes!
« previous next »
  • Print
Pages: [1]

Author Topic: Before the bomb explodes!  (Read 5002 times)

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Before the bomb explodes!
« on: November 03, 2010, 05:16:31 AM »
Hey everyone!  So I'm remaking one of my caves and I'm trying to implement a system with bombs.  Basically, if you approach a crack in the ground and you have a bomb with you, you can place that bomb on the ground and blow it up to reveal a hole with an item.  The problem is, is that this bomb only reaches closer to ignition if you are holding it.  So I want to make a system where the bomb gets hotter and hotter and you have to press "ENTER" at just the right time to drop it, before it blows up in your face.  So...I don't know how to go about this.  If somebody could maybe start me off or tell me how to make this kind of system, I would greatly appreciate it!

As a side note: Why is my sig all messed up!? 

That is all.
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Before the bomb explodes!
« Reply #1 on: November 03, 2010, 10:42:18 AM »
Let's see here...

Bsdum badum badum

There we go. All done, you can retrieve your pokémon now.
-------------------------------------------------------------------------

Allright, you want an event were you have to press the button at the right time or get blow up.
I'm thinking a time bomb here, like a thing with a clock. And naturally it would tick down every second.
So that's exactly what we're gonna do here:
In a separate event (parallel) you have a play sound - clock, add variable[bomb]+1, and then wait 1 second. (it will loop once it's done thanks to the parallel thingy)
So every second this event will increase the bomb variable by 1 and make a clock sound.

----------------------
"Then what purplest of mages?" You might ask.
Well my dear apprentice - we just made the clock of the bomb but it won't blow up for ****.
That's the next part.
 
We now add a new event - this one will make the bomb blow up once it have been let's say 5 seconds.
So the precondition is : Variable[bomb] = 5. So once it have ticked 5 times - it will blow.
You do this by having some BOMB battle animation playing in the hero's face and maybe removing some hp. And you turn off the whole event.

--------------------------------
"That's great and dandy sir but what if I don't want a bomb to blow up in my face then?" You might ask me.
And I will answer that as well.

What we do now is to make an event with many different pages.
Well, we might even use the same event as last time.
page 1: var[bomb] =1
page 2: =2
ect up till 5.

We could make each page change the charset graphic of the bomb to one redder version so people know when it blows.
BUT
on the 4th page you add a key input. And if the player presses the enter button at this point (key input = 5) the event is turned off (so the clock won't continue) and the bomb is dropped and the hole is opened.
You could also add a thing where you press to early and lose a bomb.
------------------------------------

So let's summarize this.
You use your event that I guess is walking up to a hole, choosing to place a bomb. You see the hero light it up, you start the Event through a switch or something.
While the switch is on  - the clock event starts running and adds a value every second.
Everytime the value increases you make it change the character's graphic to symbolize bomb blast off.
You press the action button during 1,2 or 3 - drops bomb but loses it. (or less than or equal to 3)
You press the action button when it is 4 and it's a success.
You press too late and the bomb blows up.
At the end of all possible outcomes make sure that you turn the event(switch) off and that you reset the bomb variable.
---------------------------------

And that should work unless I'm a scarecrow with a stick.
I hope it makes sense and works. Good luck.
Logged
Cool RPGM Project!
Sprite till you die

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

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Re: Before the bomb explodes!
« Reply #2 on: November 03, 2010, 04:01:03 PM »
Prpl....you are a god among men!!  Thank you!  I'll try this out once I get back to my computer and I'll let you know how it goes.
Logged

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Re: Before the bomb explodes!
« Reply #3 on: November 04, 2010, 06:24:59 AM »
So uhh....it's not working.  I cant get the clock to stop ticking and pressing ENTER does nothing.  He always ends up blowing up.  :/  Poor Sky, I've seen him blow up like 23458 times!
Logged

Offline SaiKar

  • KOFFING!
  • Staff
  • Royal
  • *
  • Posts: 4,082
Re: Before the bomb explodes!
« Reply #4 on: November 04, 2010, 11:55:44 AM »

Will stop the bomb from blowing up if you press enter (key input processing = 5 for the enter key) when the bomb is at exactly 7 seconds. Running to work - hope this helps.
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Before the bomb explodes!
« Reply #5 on: November 04, 2010, 01:34:34 PM »
Allright, is the clock event a parallel process?
Is the event with the many pages a parallel process?
Logged
Cool RPGM Project!
Sprite till you die

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

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Re: Before the bomb explodes!
« Reply #6 on: November 05, 2010, 12:33:07 AM »
Sai: Was I supposed to create an actual timer?

Prpl: The clock is a parallel process and the event with many pages are all action keys.
Logged

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: Before the bomb explodes!
« Reply #7 on: November 05, 2010, 01:48:26 AM »
Well that might be your problem then. There's no point in having a key input process if the hero can reach the event with an action button.
Having both would force you to first press the action button to start the event and then press it again for the key input process.
Logged
Cool RPGM Project!
Sprite till you die

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

Offline SaiKar

  • KOFFING!
  • Staff
  • Royal
  • *
  • Posts: 4,082
Re: Before the bomb explodes!
« Reply #8 on: November 05, 2010, 02:29:40 AM »
Quote from: Linkforce on November 05, 2010, 12:33:07 AM
Sai: Was I supposed to create an actual timer?

Prpl: The clock is a parallel process and the event with many pages are all action keys.
Yeah. Setup when you start this sequence in the game is just turning on a timer (visible on screen) and activating the BombOn switch. I figured that was stuff you were doing already though. Admittedly your original request was a bit confusing in what exactly you wanted so I wasn't sure if this entirely cleared it up, but you can hardly go wrong with a good key input process.
Logged

Offline Linkforce

  • The Original Master of the Mosey
  • Leader
  • *
  • Posts: 2,330
  • i love rpgs
Re: Before the bomb explodes!
« Reply #9 on: November 08, 2010, 07:10:57 AM »
I talked with Prpl via MSN.  He helped me through it, but thanks for the help, Sai!
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • Before the bomb explodes!
 

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