LittleStain's Recent Forum Activity

  • dzaky Alkaff

    that would be pretty simple.

    Just set activelayoutnumber to choose(1,2,3,4) or floor(random(1,5)

    If you have more layouts than 5 just change the numbers.

  • What are you actually asking?

    What is happening, what would you like to happen?

    There is 300 events in your event-sheet, so what events do you want me (us)to look at and why?

  • How would you like it to move?

    You could probably use bullet behaviour, set its initial state to disabled and enable it on click.

    But I'm not sure what kind of movement you are looking for and if it should only go a certain amount.

  • In the event sheet you can call it by:

    Star is boolean instance variable set CanHurtNinja

  • on touched menu button

    menu button is visible

    • perform action.

    if it is invisible the action won't be performed.

    also if you right click on a condition you can choose invert.

  • What would be an acceptable solution?

  • star on collision with ninja

    if CanHurtNinja is true

    • star destroy
    • ninja subtract 1 from ninjalife

    ninjalife = 0

    • ninja destroy

    or something similar..

  • Give the star a CanHurtNinja boolean variable and set it to false..

    In the same event you redirect the star set the variable to true

    star on collision with ninja

    if CanHurtNinja is true

    • Hurt Ninja.
  • You could give the player a variable playeraction and set it to "walking","falling","jumping","shooting"

    Then instead of checking animation you only have to check which action the player is performing.

    so on left button touched -

    player.playeraction = "walking"

    • player set action to "jumping"

    player compare variable playeraction = "jumping"

    system trigger once

    -player simulate platform pressing jump

    etcetera.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It should work this way. No destroying or creating anything.

    slice is overlapping sprite10 - sprite10 set bullet angle of motion : angle(sprite10.x,sprite10.y,sprite10.spawnx,sprite10.spawny)

    I tried it with on touched and it worked.

  • Will this work?

    On collision

    player.Y < branch.y

  • In the layout properties window you can attach the event sheet to the layout, this can be the same event sheet.

    It would probably be better, though, to make an event sheet with all game-play-mechanics and use the include event sheet in an event sheet with level/layout specific features..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies