lionz's Forum Posts

  • " the animation will start from the beginning partway through the animation. " is that a typo or just confusing phrasing? There is nothing obviously wrong with the events in the screenshot, the bug is probably caused by the other events, a conflict of trying to playing different animations at the same time, it's a common problem.

    Your event relies on 'Animation 1' to be playing but there's no indication that you stop it from forcing 'Animation 1', however we cannot see the other events. If you can't work out where the conflict is with the events then better to share the project file for someone to take a look.

  • The point of saving is so that the data isn't lost, not sure what you mean? You don't trust the save method?

  • There is a Stop audio action. It's up to you to make sure you are not triggering Start audio twice.

  • Do you mean the html object 'Button' because then I don't think it's possible. You can make your own with a Sprite and Text object on top of it, and the Text you can customize as much as you want.

    • Post link icon

    For the background you can add a Tiled Background object or a Sprite with an image. When you collect an item you can add 1 to a global variable, when the global variable equals a value (total number of items you expect) then you could trigger a particle effect.

  • I am not saying this is the best method to use but the way I would do it in my game is to create the object, then check if it is overlapping an object - if true then destroy it and create the object again. You would repeat this until the overlap check is false.

  • I think I understand the problem. When you use mouse cursor over object it picks the single instance of the object for the actions, so it will only apply destroy to the one the mouse is over.

    To fix you can create a sub-event 'System > Pick all distraction objects'. This opens up all of your instances to be picked again. Then if you apply destroy action from this sub-event it will destroy all of the instances.

    The reason it works with destroying the good ones is because good object was not picked on the left with cursor action, so it did not narrow the selection. So this will automatically destroy all good objects because you did not specify, so that's fine.

  • If you explain what is an object bank :)

  • You keep posting but the question is too generic, there is no information but you probably know this.

  • > If you mean that it doesn't always create the matching object like over A it creates B instead of A then this is intentional, if you use Family it creates a random object inside Family.

    Interesting. I think the behavior should be different when I specifically iterate over all family instances right before. I kind of expect the family object in the create method to be the same .

    Yes it's an easy assumption to make of course. If you want to create the same object you probably have to go down to the object level in the pick and create events, so for this Families will not be useful.

  • So it doesn't look like what?

  • If you mean that it doesn't always create the matching object like over A it creates B instead of A then this is intentional, if you use Family it creates a random object inside Family.

  • Great :)

  • 'On jump' is the condition, set animation is the action. In Construct use set animation based on different conditions. You can change it back to idle animation when you land by using 'on landed'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use 'on jump' condition on the platform behaviour.