Suggestion Issue: block: <layer with name: [ ] exists>


Pages: 1

NobodyX

  • Master Stencyler
  • *
November 04, 2015, 04:26:02 pm
There should be a block that looks something like this:
Code: [Select]
<layer with name: [ ] exists>that checks whether or not a layer exists in the scene.

It would be incredibly useful, especially since referencing a layer that's not there will crash a game. Without it I will have to diligently check and recheck that almost every scene in my game has the same layers because of a behaviour they all share.

If it's easier, another solution would be to make the <tile exists at row: [] col: [] layer name: []> block return false if the layer doesn't exist, instead of crashing.


captaincomic

  • Master Stencyler
  • *
March 09, 2016, 09:02:08 am
I added a "layer exists" block in build  9025.

If it's easier, another solution would be to make the <tile exists at row: [] col: [] layer name: []> block return false if the layer doesn't exist, instead of crashing.

I cannot reproduce any crash (on Flash or desktop). The block returns false here. Is it still crashing for you (which platform)?
  • Status changed from New to Resolved


NobodyX

  • Master Stencyler
  • *
April 05, 2016, 07:40:28 pm
Oh shit, sorry for the late response! Thanks for the block! :) Last I checked it crashed on Cppia export, and Windows too I think.


captaincomic

  • Master Stencyler
  • *
April 07, 2016, 08:01:07 am
No prob. If it's still crashing for you, please make a new issue for that.


Pages: 1

Details

  • Reported
    November 04, 2015, 04:26:02 pm
  • Updated
    April 07, 2016, 08:01:07 am

  • View Status
    Public
  • Type
    Suggestion
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4, 3.4.0 beta
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode

Tags