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.

Eventing Musical Tiles

Okay, here's what I want to do... for a 'sound room', I have a section of the floor on which each tile that is stepped on, will play a single note [I have a series of notes in SE files]. The most I can figure out is, it involves playing the SE and using a character sprite for the tile that will appear when stepped on [oh, forgot to mention I want the regular floor tiles to appear up until the point that you step on a musical tile, that's when the regular tile will change to a special glowing tile]. I've tried to accomplish this through switches, self switches, and variables, but I'm obviously doing something very wrong. So, basically, I want to know how to do what I mentioned above. Help please?
 
Well, if you want it to happen when the player steps on the tile, set the event trigger to "Player Touch". Then, in your event command list, play the sound effect, and then turn on a self-switch. On the 2nd event page, make sure it's activated with the self-switch that's flipped, and make the graphic the glowing tile. That event trigger should just be "Action Button" so it doesn't do anything.

And that should work just fine.

EDIT: Oops! Didn't notice the VX thing. Well... I think it should work similarly though...
 
Set the second event page to parallel process and have it check if the player's coordinates equal that tile through variables. Then in a conditional branch that it isn't, turn off Self Switch A.
 

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