lionz's Forum Posts

  • There's an add button on the event sheet, choose Function. It creates the function like in the screenshot. Right-click on that function and add parameter to create one. If in doubt, check out ze manual!

  • If he already mirrors then it should work automatically, the image points flip with the player. What is happening when you spawn it and he is facing left?

  • If you use 'Set Mirrored' on the player, this is common and should work for that. When you press left key, set mirrored and right key set not mirrored.

  • Looks like this is down to events if you are saying the attack animation stops playing when it should, there could be 2 conflicting animations trying to play at the same time, this is a common issue with animations.

  • is playing is false if a different animation is playing

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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