lionz's Forum Posts

  • It should work how you describe, check in debug view if the instances have increased. Maybe they exist but you can't see them for some reason. If there are some SVG created then you can pick them from the inspector and see where they are. If they definitely haven't appeared then please share the project :)

  • You spawn the hitbox in the centre of the player (image point 0) so possibly the enemy will hit the player first. You can set up a new image point for the player in the image editor, then on the spawn action you have there you can see the image point 0 you can change it to image point 1, this is for spawning the hitbox elsewhere like on the player hand.

    Where the enemy can collide with the hitbox and the player, well that's down to your own game design. You can adjust the collision box of the player and the hitbox separately. The issue about pressing the attack button twice is probably that the hitbox misses the enemy. The enemy may have a smaller hitbox than you think and can be edited in the image editor.

  • On start of layout, it creates only instances for Sprite from the container but does not create instances for SVG object that is also there. Can you rephrase?

  • Using a Text object you set text to money where money is the variable. If you want to display the specific money amount you are adding then you'll have to pick it out from the events you are using and set another variable to that value and use set text to show variable2.

  • You do not have permission to view this post

  • Do you mean you're having trouble selecting objects that are on top of each other? You can lock certain layers so objects on that layer won't be selected.

  • The money amount would be a global variable and when customer purchases something you add to the global variable.

  • Better to share the project here so someone can debug that

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Also if this is for help with events in Construct 2 then you posted it in the wrong place.

  • 1. Use a global variable for sound on/off instead of what I guess is an instance variable you're using on the button

    2. There is a system condition 'on end of layout', you could use that with the Stop audio action on the layout 1 event sheet

  • Share the project file of what you tried and I can take a look

    • Post link icon

    Every 2 minutes would be annoying, 2 hours is a long time. Also the pop up could be useful to remind you to save.

  • You are spawning them outside the layout (Y=-70) and the object is set up to be destroyed outside layout.

  • I don't think you can do it by name you'll need to pick the object. What's the problem you are having where you can't just pick enemy1 for example?

  • Look at the conditions under player with the platform behaviour. If player is overlapping spike, or on collision with spike can also work. Then the action on the right would be to destroy player or subtract some hp.