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.

PLease Help!! part2

I am useing Xas- Hero Edition 3.4

Thanks for replying to my question. On how to kill all enemies before im aloud to enter a other room,

but yet its still a bit confuseing to me.

Here are the steps i did to see if it would work.

*add conditional branch
*Choose first tab (1), i then added a Variable 0004: enemy ID.
* then I add equal to
*Constant 6

so now my conditional branch looks like this

@> Conditional Branch :variable {004:enemy ID}
@> transfer player [upstairs]
@>
Else
@> Must kill all enemies before you can enter
@>
Branch end

When i test play my game And run past all the enemies it says *Must kill all enemies before you can enter* Which is AWESOME!!
but if i killed one person it allows me to enter the next room.. even tho alll other eneimes are still alive. so im missing something.

Please help me!!

PS. Sorry for createing a topic in the wrong Section on your forum I hope i did it right this time.
 
Would you mind waiting a week or perhaps a ocuple of days? I have a event like this on my RPG, but unfortuenly, the ocmputer it's on is in the shop so I have to wait. Or though...I have RMXP on my 4gb flashdrive, so I could try helping in the next few days.

Yours sincerly,
Miles
 
fellow Member Miles Castea

thanks for replying to my Question. im sure I can wait for your reply, no problem at all But I will try to attempt to
Fix it,

Because practice makes perfect lol also creates alot of stress

Hope to hear from you in a couple of days or a week.


Also any help would be very much appreciated I will not hesitate to add your name to my ending Credits when this problem is solved
 
You could try adding a variable to count how many of the enemies are dead, and a conditional branch on the door. Once the variable reaches the target value (ie: 6 if there are 6 enemies in the room), you can then use the door. (or if there is no door, have a parallel process to check the variable and then teleport the player)

I don't know if there is a better way to do this, but that's how I'd do it.
 
I can't tell, because your Conditional Branch and whatever are on page 1 of your event, and you didn't post page 2.

Page 2, of course, is the only one that will run if its conditions are True. What's on page 2?
 
I got rid of the Switch that was in tab 2 and replaced it with a conditional branch that i had in tab one, so right now i have tab one empty

what else do i need to do to make the Conditional Branch relize that 6 enemies are dead is there a way u can show me a pic on what the condition should look like ?


I know i have to use a varible but how do u set it up? do i need to place a varible some where on my enemy ? im completely clueless
 

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