SlingoHighway's Forum Posts

  • 7 posts
  • > The "sling", "bronze" and "dalila" objects work perfectly fine, being Global just like "erin",

    Those objects are set as global, but erin is not.

    OH MY GOD I'M SUCH AN IDIOT HOW DID I NOT NOTICE THAT

  • When you are switching to another layout, all objects from the current layout are destroyed. If the same objects exist on the new layout, their instances will be re-created, possibly with different UIDs.

    You can set an object as Global, it will be transferred to other layouts. But you should be careful, it's very easy to mess things up with global objects. For example, if you switch to "eren" layout and then back to "main", you may end up with two instances of Eren object. In this game I wouldn't recommend it.

    Ah, that makes sense actually. It's probably deleting the previous version of the object and replacing it with a new one, which is... honestly pretty frustrating, but interesting nonetheless.

    Weirdly enough though, it only seems to do it to new objects. The "sling", "bronze" and "dalila" objects work perfectly fine, being Global just like "erin", using almost identical event sheets (only differences being the objects affected and the dialogue shown on screen).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made a topic about my problem earlier, but that wasn't until I figured out what the hell was even going on. Also, no-one responded after I figured it out, so uhhhh... encore.

    Every time I go and talk to the sprite "erin" (the cat lady), according to the debugger, her UID gets destroyed as soon as the player collides with her and I haven't a clue why.

    drive.google.com/file/d/1KsF93Utwa-lKeHtPaVqBnJ67TTCRYhk-/view

    (I forgot to connect the "erin" layout to its respective event sheet "event_erin" when I saved the file. No, the event sheet is not the problem, I've checked.)

  • OK, so the problem is that Erin's conversation topic variable (changed with the Shift key) and dialogue variable ceases to work.

    I'm currently in the debugger right now, the Bronze layout's inspect tab shows everything that should be there, while Erin's says nothing but...

    > The instance being inspected ('erin' UID 100) was destroyed.

    I'm not exactly sure what this means. Is it corrupted or something?

    By the way, I apologise for not knowing very much here, I'm fairly new to using Construct, or just any proper game-making tool in general.

    To add, Erin's inspect tab displays itself properly before talking to her, but then displays the error message after she has been interacted with, even when you exit out of her layout.

  • OK, so the problem is that Erin's conversation topic variable (changed with the Shift key) and dialogue variable ceases to work.

    I'm currently in the debugger right now, the Bronze layout's inspect tab shows everything that should be there, while Erin's says nothing but...

    The instance being inspected ('erin' UID 100) was destroyed.

    I'm not exactly sure what this means. Is it corrupted or something?

    By the way, I apologise for not knowing very much here, I'm fairly new to using Construct, or just any proper game-making tool in general.

  • the erin layout does not use any event sheets

    My mistake there. However, even when I've connected the layout to the event sheet, it still doesn't work.

  • I'm currently developing a dialogue-based game for a school assignment that makes heavy use of instance variables.

    I have 8 working instance variables in the game so far, 6 of them being used for redirecting the player to certain dialogue. With the 3 NPCs that have 2 of these variables each, they work completely fine.

    However, I'm trying to get another NPC's variables working, and despite how each event sheet for the dialogue is virtually identical, it's not working at all.

    I've tried basically everything. Remaking the event sheet from scratch instead of duplicating it from a previous character's event sheet, adding dialogue to establish some difference, transferring the function to other objects' variables... it seems the latter is the only method that works, but only for objects that already function properly.

    I'm completely stumped.

    Here's the download for the latest version of the project. Point of interest is the character "Erin" and her event sheet.

    https://drive.google.com/file/d/1KsF93Utwa-lKeHtPaVqBnJ67TTCRYhk-/view?usp=sharing

  • 7 posts