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.

Simple Character Transformations via keyboard

To transform a main character on demand simply follow these steps

1. Set up an event that is parallel process

2. Give this event a conditional branch based on a key on the keyboard, such as Z

3. When the condition is met Put a change character graphic command and switch the sprites to whatever you wish, such as a monster.

4. Then, add another conditional branch to the same even, only change the key to A, or whatever you wish, and make the graphics change back to the original character sprites.

Now when you are on the map pressing Z or A will switch you out from one form to another on the fly. Of course, it's recommended that you add an animation and sound to this for better effect.

Also, You can use this to create simple challenges, such as only being able to do certain things or complete certain objectives while in one form or the other.  This might not be anything special for you pros out there, but I thought it was an awesome idea, and I'm sure other newbs could use this information to better their game.  Sorry, I dont have any demonstration pics.
 
Mustardy85":3ptaggce said:
jbrist":3ptaggce said:
Just put everything there into a common event and on your map call common event.

Ummm... would that event also be activated with a paralell process or Autorun...

which ever on you want. autorun to start something off or parallel process to keep it running during game play.
 
I see, wouldn't that be just as effective as an event on the map and no more? The only difference I see is instead of copying the map event you'd have to put a comment event on the map. isn't that just as much work? Which is relatively insignificant? Just curious of course,
 

Jason

Awesome Bro

Instead of having an extra event on each map, have the common event triggered on the starting map, and then erase event, that way the play can use this all the way through the game, and that extra event isn't there, which may cause lag :thumb:
 
Yep.  It's a similar process-- Parallel Process common event checks what armor you have equipped, and changes the main character's graphics accordingly.  Simple enough.
 
As for the note on common event vs. making an event on map and calling a common event or the like, I think the most effective way would be to make it a common event as parallel processing, with the condition of a switch "canTransform". That way, all you need to do to enable or disable it is simply turn the switch on/off, which you can manage anywhere with much more ease. It would also be a lot less hassle and easier to check or to make sure/much less room for errors, as having actual events that control it on map could get confusing at times when there are a lot of events on the map.
 

Krysis

Member

how would you set up the conditional branch for a key? i have no idea how to find "If [Key] is pressed" under conditional branch. is this a script? please tell me
EDIT- wow i cant believe i missed that. sorry ignore my post lol
 

Krysis

Member

it isnt working for me, ive tried it so many times in so many different ways, everything works except the "change graphic" part
EDIT- Sorry for double posting...
 
For the player's graphics, you cannot use the Change Graphics in Movement commands as you would with events. You have to use the command (on the 3rd page I think) that changes the actor's graphics specifically.
 

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