Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[XP] Common Event Question -- Please help!

How would you setup the common events as so you can make yourself ride a horse? or like ride a bike, or have running shoes... etc!

I have tried many things but I just can't get it right =(

(also could you tell me how to activated with an item in the inventory and de-activate by like pressing a keyboard button?)

Sorry for being such a "n00b" I am working on my game and I have just got the game around 3 months ago and I am making some progress learning.
 
Alright, to make some running shoes, try
Code:
Conditional Branch Item Running Shoes Have
  Conditional Branch Key (See 1) Pressed
    Change Speed Player 5
  Else
    Change Speed Player 4
  End
End
1. Whatever key you want

Or how ever you want that. If you want equippable running shoes insert a
Code:
Conditional Branch Running Shoes [Character's Name] Equipped
around it.

For a bike, that'd be a bit more complicated, if it was just simply a bike like in pokemon, where you just fetch it out of your bag(Massive bag!), try

Code:
Conditional Switch [Bike] On
  Change Speed Player 5
  Change Player Sprite (Player On Bike)
Else
  Change Speed Player 4
  Change Player Sprite (Player Normal)
End
for the actual movement and
Code:
Conditional Branch [Bike] OFF 
  Switch [Bike] ON
Else
  Switch [Bike] OFF
End
in it's own event, and set the Bicycle item to 'Common Event' for that.

If you want a bicycle that you can pick up in the street and ride, find a vehicle script :\.
 
Hmmm Thanks a lot! Unfortunately it didn't work for some reason?

Why isn't working? I have some pics if it helps


I have seriously tried everything. Pressing the button doesn't work! What am I doing wrong! (I know I am a 'n00b' so please forgive my 'n00bishness')
 
Just create any event on the map (Autorun or Parallel Processing) that turns on "Switch 1", which is necessary for the common event to run. Remember to have an "Erase Event" or a "Control Self-Switch" after turning on the switch so it doesn't loop.
 
first of all, i'm just going to clear this up, you're aware 'z' is actually the 'shift' key, right?

btw, take the 'else' instance off the 'z if pressed' branch. it's ugly, and unnecessary. @_____@

I don't see why you'd need a switch for a running event. it should work with just the 2 conditional branches.


Heres a screen of one that will, without a doubt, work. if you prepare it correctly:
(i tested it, and it worked for me. btw, ignore the condition switch, that was an accident)
http://i25.tinypic.com/cpb9s.png[/img]
 
You need a switch because that's the condition switch for the Parallel Processing Common Event.

And "Z" is both "Z" and "Shift", unless you've canceled it in the F1 button layout.

@Ryuzaki, I'm pretty sure Xaixis is using the legal version, you don't need to worry about that.

~~~
Okay, if you're still having trouble, can you upload a demo for us to see?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top