to next layout when ALL monsters are destroyed

This forum is currently in read-only mode.
From the Asset Store
75 creature and animal sounds, including real animals and fantasy creatures.
  • I am brand new to Construct and i must say it is fun.

    i have been using the ghost shooter tutorial and succesfully made the game. to get used to the program more, i tried doing some modding.

    so what i did was i said if monster private variable "hit count" is greater or equal to 5, than destroy monster and go to next layout. However, it goes to the next layout after destroying one monster. how do i make it go to the next layout after destroying ALL monsters?

    also is 3D possible with construct?

  • Welcome to the forum!!

    if monster private variable "hit count" is greater or equal to 5, than destroy monster and go to next layout. However, it goes to the next layout after destroying one monster.

    It sounds like your events are working exactly how you programmed them based on your first sentence! If you want to make it go to the next layout after killing all monsters then use a global variable or a player private variable to keep track of how many monsters killed (killCount). If you have 5 total monsters then have an event:

    Event: global('killCount') >= 5:

    Action: goto next layout

    also is 3D possible with construct?

    If you want a full blown 3D game you should try something other than Construct. However, you can have 3D elements in your game such as 3D box and look at some of the Mode7 examples on the forum.

  • ok. so i created a global variable called killcount with an initial value of 0. i WANT to create an action that says on collision between BULLET and MONSTER add 1 to kill count. How do i do this, the only action i see can be used with private variables only? and i added an event that said global('killcount') >= 25: and added an action that said go to layout 2.

    also, do you know anything like construct that can import 3d models?

  • i WANT to create an action that says on collision between BULLET and MONSTER add 1 to kill count.

    There is a system action that allows you to modify global variables.

  • Another easy way to do it is to just go:

    System Compare: monster.count is less or equal to 0

    -> Go to next layout

    Obviously make monster the name of your monster.

    OR if you have two types of monsters for example a ghost and a chicken... you could put them into a family called "enemies" and then make it enemies.count.

    Hope this helps.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • OR if you have two types of monsters for example a ghost and a chicken... you could put them into a family called "enemies" and then make it enemies.count.

    OR...

    System Compare: ghost.count+chicken.count is less or equal to 0

    -> Go to next layout

    theres no "right" way just do what ever you feel works best for you

    [quote:1t1nmwwv]3d etc. etc.

    Yes, but seeing as you've just started construct i say practice a lot of other stuff before you go anywhere near 3d, Besides basic 3d box stuff and Z elevation. its not a straightforward process and is would pretty much be considered an ADVANCED "technique", there are .cap files on the forums available demonstrating a multitude of ways to do 3D stuff as scidave said feel free to check them out yourself .

  • EDIT: nvm, i got it working!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)