chrisyamao's Forum Posts

  • does anyone know where i can find this? the link is broken

    Thanks

  • Hi guys, i have a question. I have a simple game where you shoot birds and each killed bird gives you 1 point in a global variable.

    I had an event:

    Bullet, on collision with Bird:

    • bird destroy
    • bullet destroy

    I tried a second the event:

    Bird, on collision with Bullet - System, Add 1 to Score.

    I did a preview. it was not working. In an arbitrary way, one of every 10, 15, 20 birds killed counted as a point, so i would kill more than 20 birds and have a score of 2 or 3.

    I tried changing the event to:

    Bird on destroyed - System, Add 1 to Score.

    I did a preview and it worked perfectly.

    What is the difference between those two events? how come one worked fine and the other one was pure nonsense? They seem to represent the same logical event.

    Thanks

  • Hi, i'm relatively new to C3 and i'm having a weird problem.

    Some actions of my events get ignored.

    My game has birds falling from the sky (bullet), moving side to side (sine) and shaking rapidly (sine2) when hit by a lightning.

    In my event sheet, i have:

    When bird is hit by thunder, set bird's:

    -bullet inactive (stop coming downwards)

    -sine inactive (stop flying side to side)

    -sine 2 active (get electrocuted)

    I preview my project and the first bird i hit with a lightning plays perfectly.

    But the second (& onwards) ONLY obey to stop their bullet behaviour.

    In other words. first bird i hit, behaves like this, like i should:

    When bird is hit by thunder, set bird's:

    -bullet inactive (stop coming downwards)

    -sine inactive (stop flying side to side)

    -sine 2 active (get electrocuted)

    Every bird after the first one, behaves like this:

    When bird is hit by thunder, set bird's:

    -bullet inactive (stop coming downwards)

    Any idea of what this could be?

  • Hey Chris,

    When you spawn a new object it generally takes all its variables from another object in the project. Is there an object of the same type somewhere in your layout with different settings perhaps?

    Thanks Genga! that might have been it. i solved it in a more complex way anyways.

    I didn't have instances of it in the LAYOUT, but maybe in other layouts of the project. Maybe that was it...

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everyone, i'm developing this game where some enemies are on screen on the start of the layout. I've set them with "bounce off solids" true. They work fine, they bounce.

    However, more enemies spawn over time, but these spawns behave as if the "bounce off solids" setting is set to false.

    How can i fix this? i tried looking for a "on created, bounce off solids true" , but didn't find anything like it, i tried with " on created, bounce off [the object they're meant to bounce off of]" but it doesn't work.

    How can i make it so that every instance that is created, is set to bounce off solids TRUE and not only the ones that are already in the layout that i manually set ?