dop2000's Forum Posts

  • So if enemy is NOT moving, and it has a man to the left, you want the enemy to start moving to the left. Is this correct? What's really happening?

    If you have many enemies and men, you need to add "For each Enemies" to the top event. Conditions should be in this order:

    Enemies ValueLeft>=32
    For each Enemies
    Men pick nearest to Enemies
    
  • You do not have permission to view this post

  • Actually, there are no instances of Console object at the moment that event is triggered. The first instance is already destroyed, and the second is not yet created.

    I still don't fully understand when the newly created instance becomes available for subsequent events.. It supposed to be accessible in the next top-level event, but it's not always the case.

  • Funny enough, the problem is with the Console object. You are destroying one instance of Console and creating another in the same tick. So I'm guessing the text "You're connected to the internet." goes into the deleted instance.

    Don't destroy Console on start of the layout and you'll see that everything works correctly.

  • Can you share your demo project? I tried the same code and it works fine for me.

  • Yes, I know it can be used this way. I meant - does it work when you move "trigger once" to the parent event?

    Edit: I tried the same code and couldn't reproduce this issue. "Trigger once" does fire in the sub-event.

  • "Trigger once" needs to be the last condition in the event. Don't put it in the sub-event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the explanation. But I still don't understand what you mean when saying "flip" or "rotate". In Construct terms this is flip and rotate:

    Not sure how keys can work inconsistently. Did you disable "Default controls"?

    Can you please post your project file, or a screenshot of the event sheet?

  • Canvas is not heavier than a sprite. And you only need one canvas object, not 2000 of them. So it will definitely be much better for performance than 2000 sprites.

    When you need to add skid marks, create skid marks sprites, paste them to the canvas, wait 1 tick, then delete the skid marks sprites. Here is a similar demo:

    howtoconstructdemos.com/splashes-of-paint-on-the-wall-c3p

  • What does it mean - "how to change the movement commands so i can make the character move and rotate"?

    Are you using Platform behavior? Is this character controlled by the player, or is this an NPC/AI (controlled by computer)? Please explain exactly what you want to achieve and post an example of your events..

  • Oh, sorry, I was looking for a separate action, something like "Pin scale". It's working great, thank you!

  • Right click on the white area in animation editor, then choose "Import frames -> From strip"

  • Even better! So can you please add pin width/height? It will really help with tasks like creating modular characters.

  • Pinning values is easy to do in events

    Ashley Pinning itself can be done with events...

    To me pinning properties like mirror/flip and scale are just as important as pinning an angle. Yes, it's possible to do them with events, but it would make a lot of sense to have these features in the Pin behavior.