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.

Sound Problems + 1 more problem

I have 2 events just wacking constantly at 2 target dummies.

I have them both set on parallel processes with this event script:
Code:
 

-Loop

   -Show Animation: [dummy], Hit

   -Wait: 10frame(s)

     

The Hit animation sound can be heard through out the whole map, how am I able to make so that it can only be heard when the events are on-screen?
 
Check to see if the player is within the screen (20x15) using variables and conditional branches.

-if Var[01:Player X]-[03:Object X] <= 20
---if Var[02:Player Y]-[04:Object Y] <= 15
----loop
-----show animation: [dummy], Hit
-----wait 10 frames

----loop end
---else

--else

-branch end

that should work
 
I'm still not used to using variables, how am able to set up those numbers as variables?

EDIT: I am also trying to put a fire animation on buildings as if they were on fire, but whenever I put them on, the game freezes when the map loads.
 
Using the variable event command. There is a help function it looks like a question mark (?). Seriously consider using it. You will learn the program faster that way than if anyone told you.
 
I did use the Help Function and I do understand what variables are/do. What I don't see is how to create the conditional branch example you posted, I go to Conditional Branch, select variable, made Player X/Y Object X/Y, and set the variables 20,15 respectively. But it doesn't work and I don't see how to set up so that the variables are referring that the event is within the 20x15.
 

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