lionz's Forum Posts

  • Save project as a capx file and put on dropbox or google drive and paste the link. Generally if you're asking how to do something then someone can give advice, if you're asking what's wrong with your game then they will need to see it, or they can guess.

  • I think anyone will have a hard time assisting with this without seeing the events in a shared capx.

  • Np, I'm happy with my logic there. All wood relates to its own dispenser and wood will be dispensed from it when no wood remains!

  • I sorted it here https://www.dropbox.com/s/ytkppgcc6b0hf ... .capx?dl=0

    Added a wood total for the dispenser. It's +1 when wood created, subtracts 1 when wood destroyed, then creates more wood if total is 0.

  • Not sure what your trigger event is meant to be for spawning wood so I set it to every 2 seconds. This is the logic for matching wood to its own dispenser. https://www.dropbox.com/s/ytkppgcc6b0hf ... .capx?dl=0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright np, could've deduced that with the capx anyway, which would've been the next step!

  • Check in debug mode on the left to see if hundreds of things are spawning every tick and possibly not being destroyed. If the image for the bullet is huge and being spammed it can also cause performance issues. If you can't see anything then you can share capx for easy debug.

  • Usually I would give the wood spawner an instance variable, a kind of ID, so the first one var is 1, second one, var is 2 etc which you can pull from the wood spawner's own IID (instant of that object type). Then any wood spawned from it, you can set an instance variable on the wood to match the spawner. So something like spawner - spawn the wood. Wood set wood.variable=spawner.variable. Then any wood marked as 1 has come from spawner 1, marked as 2 from spawner 2 etc.

  • Either use physics behaviour or have an animation of a boulder falling set on a sprite with bullet behaviour or just moving down Y axis.

  • Just make use of random or choose, If you set angle to choose(0,90,180,270) every X seconds then it will fire in one of 4 random directions. You can do this with speed, setting it randomly as often as you like. If it's preset patterns you can do this with functions, randomly call a function which leads to firing a certain sequence of bullets. A spiral pattern would be something like every tick fire a bullet and set angle to angle+1.

  • It's because on one of the repeats the sprite count will be 7 and 8 at the same time, therefore being valid for both conditions in C2's top-down structure. Sprite count will be 7 and create a hex based on the first condition, then once this is created, sprite count will be 8 and be valid for the second condition, creating 2 hex in one loop. As for an actual solution, hmmm *working on it.

  • On the object you can use the spawn action to spawn a chunk of wood. You can give it physics behaviour so it falls or set it to a bullet at angle 90 so it move downwards. You then destroy the wood by whatever event you are using, hitting the floor or something. Then use the event trigger On chunk of wood destroyed > spawn chunk of wood on object.

  • Ooo how nice, and congrats!

    You could create a new layout (Layout 2 I suppose) for the announcement screen, then..

    Condition: System > Global Variable Score equal to 10

    Action: System > Go to layout (Layout 2)

    Add the text and images, whatever you want, to the game over Layout 2.

  • Yep, it's easy when you know how! Good luck.

  • Have an event sheet for Character, with all the generic character events. Then on your event sheet for Stage 1, right-click, include event sheet, Character. This Stage 1 event sheet now acts as though the Character events are also in there.