lionz's Forum Posts

  • You do not have permission to view this post

  • The wait is redundant and probably breaks it too, remove that and see if it's fixed

  • You can do just about anything, you can set animation from current frame or you can store the frame number in a variable and use it.

  • The two actions from the second event should just go in the first event, you are already picking the enemy for where it should set position. In fact you used spawn which means it is already at the correct position.

  • Do you need to destroy it? How does the game work? You may be able to hide it and make it appear again.

  • Is layout 2 using that event sheet? It might have none assigned, you can check on layout properties.

  • Fixed part of the problem, now I have is... every time the score goes up the sound is playing even with trigger once because the score is going much higher than the top score all the time.

    This is my code..

    There has to be another way around it.

    edit: Yeah to trigger once 'ever' you can use another variable looks like it's resolved anyway.

  • Yep system compare 2 values, score greater than top score, with a trigger once condition.

  • If "score" > "top score" : play sound, with a trigger once so it plays once.

  • No idea why it would freeze from that. You'll have to share the project file

  • Depends on the events, if done correctly I don't see why the mouse aim would affect the keyboard movement. Share a screenshot of the events

  • I might do it with another instance variable on the ball so you know when it is or isn't overlapping the ground by offset. Then you can say if a ball overlaps the ground and variable isn't set, set it and add ball.amount to global. Then in the opposite way if a ball is not overlapping the ground but the variable is set, that means it was overlapping but is now moving away, you subtract ball.amount from global.

  • Instead of player instance variable use a global variable for lives, that is more common and it is global for all layouts.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • for each sprite, add to global variable 'sprite.var', with a trigger once so it doesn't keep adding.

  • No probs. Scripting is something separate and allows you to use javascript to assist with the events. There are some tutorials about. In general just use add action.