How do I make my boss appear and attack?

0 favourites
  • 8 posts
From the Asset Store
More, less or equal
$15.30 USD
15% off
The game will give you a dog that appeared and you must say if he appeared more, less or equal.
  • Hey guys! Does anyone know how to make a boss appear at a certain point/section? I'm using like 13 sections total for my background but in the demo it's like only gonna be 5 sections so I want the boss to show up at the 5th section of the background and after a few seconds start it's attack pattern against the player. Not sure yet how attack patterns work yet. I see how the normal attacks work but multiple is kinda tricky so if anyone can help that would be great, thanks

  • not sure what you mean by "section". what has to happen in the game for the player to trigger a boss?

    The simplest way to make code happen only when you want it to is with a "flag". So make a global variable called "BossFlag=0"

    whenever you want the boss to come out Set BossFlag to 1.

    then in an event make IF BossFlag=1 and add actions, add Trigger Once to the condition if it's the kind of code you only want triggered once.. like Create BossSprite. Otherwise if it's attack patterns you want to have then you need another event that will trigger every tick. So in that event It would say: IF BossFlag (without the Trigger Once) then add your code that will make the boss do what you want it to do (every tick). You could also make a group that you active or deactivate. I like those for top-level events like: Boss.Turret.OnShoot -> Action..etc

  • Thanks for the info and for a good example of what I mean is like the topdown space shooter demo they have that lets you learn how to do a space shooter... You know how they have 4 background sections? Say I want the boss to appear at that last background which I believe in that demo is background 4. That's what I'm trying to work on and your info for sure help once I figure out that part to make him appear in the correct background section

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • create object boss at layer (your main layer number , where you player currently is)you must have the boss somewhere outside of visible layer(margins) on start of layout so it can be triggered )

  • oh, how do you spawn your stuff on your top down shooter?

    even so.. once you hit background 5 (5th section) - you are probably changing somewhere those sections - spawn boss.

    also there's an option to make a variable global with number starting from 1, and increasing on each change of section. once that variable hits 5, spawn boss.

  • Yeah for some reason when my player gets to the 5th section it starts to get all blurry. I think that's because I haven't figured out how to make the background to stop scrolling. I'm using the Space Blaster game to build off of and use all my own graphics and stuff so in that demo the background is already scrolling but I want it to stop at the 5th section of my background and spawn a boss. I already learned how to make a new missile attack but stopping the scrolling background where I want and making a boss appear using this demo is kinda hard. I'm really trying not start from scratch and just adjust stuff in the Space Blaster game and make it my own with all new stuff

  • Thanks guys for all the help. I pretty much got the boss appearing stuff to work. Just gotta tweek some things. Other then that I just now gotta make the background stop scrolling, switch the music to some cool boss music and have boss attack player

  • In Capt. J. Doe saves the Universe I have a mini boss at wave 25, 50, and 75 plus a final boss at wave 100.

    Since CJDstU is only one continual level I had to spawn them based on units of time, thus my wave system. Each "wave" is really nothing more than a timer that I can set that changes the wave (level) variable each pass.

    My enemy spawners, and the wave clock are all set to shut off at those specific levels and restart when the boss is destroyed.

    The key is finding what works best for your game and duct taping the heck out of it.

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