Want to Make A Quick Boss [vertical space shooter]

This forum is currently in read-only mode.
From the Asset Store
A challenging game that needs quick responses!
  • Hello. Just three days left to get a working game passed in for class, and then finals next week. I wanted to know if it can quickly be done to make a boss (I have a sprite) to come down at a certain score (I need to work on that and will be following the steps from the shooter tutorial with the three ghosts). Say the boss comes from down the screen after, er, 500 points. Stays on the top of the screen moving randomly left and right until destroyed or player destroyed. If I can do this once, I can do it again at another score interval.

    Thank you for your help and patience with me while i try and rush this.

    Once school is done, I get to spend more time on Construct on my own time without being rushed. I think it is great so far.

    This is a CAP I uploaded a few days ago for another post, if you need an idea of the vertical.

    https://www.transferbigfiles.com/ee7648 ... 9Enw%3d%3d

    (link expires Monday, June 20, 2011, 1:23 PM CST)

    EDITED to fix title. Had "what" instead of "want."

  • If value score is greater or equal to 500

    Trigger once

    • Create object boss at scrollx, scrollytop - boss.height
    • set boss value 'mode' to 1

    If boss value 'mode' is equal to 1

    • Boss: Set Y position to .y+100*timedelta

    If boss value 'mode' is equal to 1

    if boss y position is greater or equal than however far you want it to move

    • Boss: Set Y position to however far you wanted it to move
    • Boss: Set 'mode' to random(2)+2

    If boss value 'mode' is equal to 2

    • Boss: Set x position to .x-100*timedelta

    If boss value 'mode' is equal to 3

    • Boss: Set x position to .x+100*timedelta

    every random(2000)+1000ms

    • Boss: Set value 'mode' to random(2)+2

    if boss x position is less than however far you want it to move

    • Boss: Set x position to however far you wanted it to move
    • Boss: Set 'mode' to 3

    if boss x position is greater than however far you want it to move

    • Boss: Set x position to however far you wanted it to move
    • Boss: Set 'mode' to 2

    I think that should work. Your link returns a 404 BTW.

  • I will try that out. Thank you. Will let you know how it goes.

    I fixed the link. I did a lot of changes since this file but it gives the idea what I am doing.... I think.

    https://www.transferbigfiles.com/ee7648b7-95cd-45a3-8ec6-699803f049c2?rid=BlPtKoH5gbdLWygaOh9Enw%3d%3d

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Arima, I tried but I still do not understand the whole coordinate bit yet. Is there a game you know of I could look at their CAP file, or if you can whip up a quick demo?

    Thank you again for your help.

  • here's another more simpler way of doing it-

    http://dl.dropbox.com/u/5811650/bossfights/main.cap

    This is not the best method, but more like an quick and dirty fix.

  • I like quick and dirty, especially since the professor extended the deadline to 2a. 12h to go.

    I check this out. Thank you.

  • The example is great!! Thank you.

    I added in a global variable called �mode� and defaulted as 0, as this CAP. I made my boss' movement �custom� under behaviors as well.

    I focused on this from the example...

    + System: Every 2000 milliseconds

    -> move_point: Set position to play.X+random(20)-10, 100

    -> bass_main: Set speed : 50 towards move_point

    And mine looks:

    + System: Every 2000 milliseconds

    -> BossMovePoint: Set position to Hero.X+random(20)-10, 100

    -> Boss001: Set speed : 50 towards BossMovePoint

    Over this...

    + bass_main: bass_main overlaps move_point

    -> System: Set global variable 'mode' to 1

    I did:

    + System: Is global variable 'Score' Greater or equal 500

    -> System: Set global variable 'Mode' to 1

    I did not bother with this since my boss comes at a certain point instead of the beginning...

    + System: Start of layout

    -> bass_main: Set speed : 50 towards move_point

    But I did try:

    + System: Is global variable 'Score' Greater or equal 500

    -> System: Set global variable 'Mode' to 1

    -> System: Create object Boss001 on layer 1 at (random(640), 0)

    I can not get the boss to still come. Could someone take a quick gander please? All boss stuff is under the group of the same name: boss.

    https://www.transferbigfiles.com/907579 ... Fnqg%3d%3d

    Files will expire on Monday, June 27, 2011, 6:38 PM CST

    Thank you for any more help on this.

  • Add this action to event 1:

    -> System: Set global variable 'Score' to Score('score')

    ...and add a trigger once to event 32 and toggle on 'destroy at start of layout' for the boss.

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