Estecka's Recent Forum Activity

  • No one?

  • So, I've been trying to use breakpoints to figure out various things in my code, but quite often, the part I want to inspect requires that the mouse cursor is hovering a certain item. When I am in the debug panel clicking "next" or "continue" my mouse cannot be hovering said item, and said part of the code is skipped.

    Is their a way to trigger a "step" using keyboard shortcuts ? So I can leave my mouse cursor where it ought to be when the code requires it ?

  • So, is there really nothing to know on that matter ?

  • So, I just attempted to name one of my animations "ActorIdle-90", but upon validation, construct promptly removed the minus caracter without notice.

    I was surprised from this restriction and tried out the risky thing: I opened the project file into a text editor, manually renamed the animation to include the minus, and accordingly renamed the project folder path containing the animation frames.

    After reopening the project, no error was shown. The animation was properly renamed, properly showed in the editor, and after updating my event sheet, it was properly playing in-game. It all seemt like there was no problem using this caracter in the animation name.

    What's the reason behind the removal of special caracters? Are there some nasty side-effect I should be aware of if I continue down this path ?

  • So if I understand, you are facing the error that says: "Cannot create an instance of the object type 'sprite': there are no instances of this object in the project.", but you're not willing to place an original instance anywhere in your level ?

    What I have done on my side is creating a "garbage" level, that has no use in the game itself, wherein I place one instance of every single object type.

    You only need to create one object in the whole project, not one per layout.

  • If I write, let's say " Sprite(5).X " in an expression, what does the (5) do ?

    I was about sure it would pick the sprite with UID 5, but everything I've done proves it doesn't.

    Since construct isn't throwing a syntax error at me, I assume it does mean something else, but what?

    And then, is there a way to pick an UID directly in written expressions instead of events ?

  • => "A single trigger can be run multiple times per tick"

    Oh, I never actually considered that. I think I'm starting to see the nuance here.

    Thanks for the information.

  • Yeah, I've checked the manual and understand how these triggers are supposed to work, but I still don't understand is why they need to work this way.

    I mean, code not executed in writing order, I'm falling off my basics here. Am I the only one to question this?

  • Wait...

    But then when are triggers executed in the code? In-between ticks? How do you control that ?

    I don't understand why. What makes it so it was intended not to work the same way as: ?

  • Problem Description

    Picking two events modifying one variable, the changes from the first to come will be carried after the second is executed. The changes from the second to come will not be kept outside of its own scope.

    Attach a Capx

    sta.sh/010tefj7gcwj

    Description of Capx

    Spite haz boolean.

    When boolean True, sprite destroyed.

    Two times in the project, the boolean value is changed:

    • A first time with no condition: the boolean is set to false.
    • A second time, on click, it is set to True.

    Afterward, the boolean is checked, and the sprite i or isn't destroyed.

    Since the boolean is set to True AFTER being set to False, it should still be considered True afterward by the following events.

    It is not.

    Steps to Reproduce Bug

    • Disable Event 1 and run the project. On click, sprite is destroyed.
    • Enable Event 1 and rerun the project. The sprite won't be destroyed anymore.
    • Make Event 3 a subevent of Event 2. The sprite will be destroyed again

    Observed Result

    The action of Event 1 will be carried after Event 2, despite Event 2 supposedly cancelling it.

    Expected Result

    Event 2 overwrites Event 1 's changes once and for all.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)

    Operating System and Service Pack

    Windows 8.1 / windows 7

    Construct 2 Version ID

    r221

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "Usually" set to global ?

    Ho, thank, I never noticed that little subtlelty in objects being able to be global or not. In my case that's fixing my problem.

    Now you say "global" though, there's one thing still poking my mind: how comes we have an action to reset global variables but not global objects ?

  • I noticed that upon restarting a layout, the instance variables of a dictionnary wouldn't be reset to their original values.

    I've tried making a capx from scratch, triggering every reset action I found on a keypress (persisted object, layout and global variable), but the changes made to the dictionnary's variable would survive everything...

    Did I miss something ?

Estecka's avatar

Estecka

Member since 21 Dec, 2015

None one is following Estecka yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies