Can't create new scene

Ryzhoff

  • Posts: 54
Hello,
i have problem with creating new scene
I need to create scene with name "20", but stencyl says "that name is already taken"
but i haven't any type of objects with this name (no actor, scene, behavoir, sound, font, etc)
please help me

Ryzhoff

  • Posts: 54
tried to find something with "open resourse"

gplar

  • Posts: 1115
Something is called 20, so you´ll probably have to work around it.
Try a leading 0, 020, and add a snippet in your code to add the 0 when you jump to scene 20. Assuming that is why you need it.  ;)

Couldn´t help peeking at your scenes, and you´ve got a great idea going.  :)

« Last Edit: February 25, 2013, 11:34:29 am by gplar »

Ryzhoff

  • Posts: 54
I need scene named "20" as its my 20 level in game,
game have player's stats which writes automatically using scene name and list using one code for all scenes
as i can't use "20" (and 21 as i knowed later) i have to make my code bigger
or change all names in the same name, for example "a1" "a2" "a3"
and replace a with blank space)

rob1221

  • *
  • Posts: 9473
Try searching the game folder for anything named "20".

flyingninja77

  • Posts: 30
Sometimes I have that same problem.  It happens to me only if I originally had something named (in your example) "20" and then I deleted it, but I have no idea why it stays in the name directory.  It's probably a bug that Stencyl 3.0 will fix.

Innes

  • *
  • Posts: 1960
I would always advise prefixing / level names, e.g. Level20 and would always avoid using digits as names (for anything)!

Although it's possible, it's not best practice to use numbers for names / labels, etc.
Visit www.TheStencylBook.com - the only published book for learning Stencyl.

gplar

  • Posts: 1115
I would always advise prefixing / level names, e.g. Level20 and would always avoid using digits as names (for anything)!

Although it's possible, it's not best practice to use numbers for names / labels, etc.

Second that.  :)

Ryzhoff

  • Posts: 54
I will follow your advise in future
Finally I resolved the problem by renaming all level (for example "20" became "Level20")
and replacing level with blank space by script