Stencyl 3.4.0 is now out. Get it now!

Suggestion Issue: Why no switch?


Pages: 1

AClements

  • Subscriber - Stencyl Studio
  • *
January 15, 2017, 07:23:20 pm
I understand you can do the same with nested if statements, but it is much more efficient and less cumbersome to use a switch statement.


LIBERADO

  • Expert Stencyler
  • *
January 15, 2017, 07:32:01 pm
+1


danielle53

  • Subscriber - Stencyl Indie
  • *
January 19, 2017, 09:50:45 am
+1


rob1221

  • Master Stencyler
  • *
March 15, 2017, 10:59:20 am
This wouldn't be hard to add but I'm having trouble seeing the benefit.  In code form you might have each case on a single line, but in Stencyl's design mode each case block would have to be its own wrapper block similar to the "if" block.  The switch statement would also need its own wrapper block, so the number of wrapper blocks would actually be higher if using "switch" rather than "if".


Pages: 1

Details

  • Reported
    January 15, 2017, 07:23:20 pm
  • Updated
    March 15, 2017, 10:59:20 am

  • View Status
    Public
  • Type
    Suggestion
  • Status
    New
  • Priority
    Normal
  • Version
    3.4.0 beta5
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Design Mode

Tags