Bug Issue: Behavior Won't Run Anymore


Pages: 1

Mineat

  • Level 3 Stencyler
March 07, 2019, 07:28:57 pm
When 100( the game's current enemy limit) of the enemies were gone, this scene behavior wouldn't become triggered. This would have been creating some eye candy for a few seconds before creating the boss at the top center of the screen, but nothing is happening instead. It was last heard during an error compile.

Link: https://pasteboard.co/I4pp79wy.png
« Last Edit: March 07, 2019, 07:50:02 pm by Mineat »


rob1221

  • Master Stencyler
  • *
March 08, 2019, 07:14:15 am
How are you triggering the behavior?  I don't see any references to 100 enemies nor do I see any custom events.
  • Status changed from New to Need Info


Mineat

  • Level 3 Stencyler
March 08, 2019, 03:07:26 pm
It's supposed to activate once the game attribute "Boss is Coming" is true. I had a scene behavior that generates random enemies from time to time and that still works, but even if I coded your suggestion in and if the game attribute was set to true, it still wouldn't work even if another behavior had the trigger event.
« Last Edit: March 08, 2019, 03:08:17 pm by Mineat »


rob1221

  • Master Stencyler
  • *
March 08, 2019, 03:13:19 pm
Changing the attribute after "when created" won't trigger that section.  Does the when updated section not do anything either?


Mineat

  • Level 3 Stencyler
March 08, 2019, 03:18:08 pm
Here is the code for 2 behaviors for it:

Enemy Generator: https://pasteboard.co/I4xcXIy.png

Enemy Tracker: https://pasteboard.co/I4xdK02.png

I was thinking the update code would repeat it per frame, so I haven't tried that.
« Last Edit: March 08, 2019, 03:20:40 pm by Mineat »


rob1221

  • Master Stencyler
  • *
March 08, 2019, 04:04:16 pm
That's a lot to look at and I probably couldn't figure it out without looking at the whole game, but I'd rather not yet since this might not be a bug.  Try to narrow down exactly which block isn't doing what you're expecting it to do.


Mineat

  • Level 3 Stencyler
March 08, 2019, 07:08:19 pm
Here are the fixed behaviors, but there is a twist with the Boss Sequence Creator:

1.  The image instance isn't seen on the screen.
2 . The image instance's opacity isn't animating.

Links:

https://pasteboard.co/I4yJ4qf.png (Mostly fixed Boss Sequence Behavior)
https://pasteboard.co/I4xCoeO.png (Completed Enemy Tracker)
« Last Edit: March 08, 2019, 07:08:49 pm by Mineat »


Mineat

  • Level 3 Stencyler
March 08, 2019, 07:36:34 pm
Okay, I completely fixed it. All I had to do was put "set opacity to [opacity]%" in the created and updated blocks. Your help on the "when created" blocks was deeply appreciated and is put to use.


Issue updated by rob1221 - March 09, 2019, 05:09:15 am
  • Status changed from Need Info to Closed


Pages: 1

Details

  • Reported
    March 07, 2019, 07:28:57 pm
  • Updated
    March 09, 2019, 05:09:15 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Compiling/Testing Games

Tags