Bug Issue: Off-screen bounds apply only to used scene


Pages: 1

Luyren

  • Master Stencyler
  • *
July 09, 2019, 07:22:03 pm
b10407, running on windows 10, tested on Flash and Desktop

The "set off-screen bounds" block is only applying to the scene in which it was used. I was told it's suppose to be applied to all scenes.

Sample game: press enter to switch scenes. The first scene sets the off-screen bounds, and the second scene has an actor that moves to the left on its own. You'll see that when you switch scenes, the actor won't move.

If you go to the Scene2 events and place the "off-screen bounds" block into the created event, the actor will move after you switch scenes.


New attachment added by Luyren - July 09, 2019, 07:22:17 pm


Luyren

  • Master Stencyler
  • *
December 09, 2019, 04:46:27 am
Bump


Issue updated by Justin - December 09, 2019, 04:47:28 am
  • Tags added: 4.0.2


Justin

  • Master Stencyler
  • *
December 10, 2019, 03:39:22 pm
Sorry about this, I just looked through the engine code and realized I was wrong to say that it applies to all scenes.

Engine.hx line 980

I've slightly modified the block's help text to state this.
  • Status changed from New to Closed


Justin

  • Master Stencyler
  • *
December 12, 2019, 05:49:58 pm
Added a property to Engine to allow the off-screen bounds to be preserved between scenes. b10479.

Code: [Select]
Engine.preservePadding = true;
  • Status changed from Closed to Resolved


Pages: 1

Details

  • Reported
    July 09, 2019, 07:22:03 pm
  • Updated
    December 12, 2019, 05:49:58 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode Blocks

Tags


Attachments

* Test Screen Bounds.stencyl (167.05 kB - downloaded 352 times.)