Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LingDong

Pages: 1
1
Hi.
It appears that the "as number" block cannot be used in a global custom block. Why is that so?
Whenever I try to put the "as number" block in the definition of a global block, The game cannot be run until the whole event is deleted and Stencyl gives the following error:

Events for 'Player':  Unknown identifier : asNumber
   from scripts.ActorEvents_164
   line: 83
   columns: 19-27

To make sure that the "as number" block is indeed the source of the error, I reduced everything in the global block to:

print 2 as number

And the error remains. Any ideas why?
Thanks in advance.

2
Fixed Bugs (3.x) / Re: Using "as number" block in a "Global Custom Block"
« on: February 18, 2015, 09:55:41 am »
You should also put your post in the bug thread, I think.

After that you can use the Custom blocks instead of a Global custom block to allow you to advance with the code.

Thanks for your responses! It seems that I have to use custom blocks instead of global custom block. It would really be a pain, since multiple actors use the same global block.

Really hope stencyl get it fixed soon.

3
Hi.
It appears that the "as number" block cannot be used in a global custom block. Why is that so?
Whenever I try to put the "as number" block in the definition of a global block, The game cannot be run until the whole event is deleted and Stencyl gives the following error:

Events for 'Player':  Unknown identifier : asNumber
   from scripts.ActorEvents_164
   line: 83
   columns: 19-27

To make sure that the "as number" block is indeed the source of the error, I reduced everything in the global block to:

print 2 as number

And the error remains. Any ideas why?
Thanks in advance.

4
Ask a Question / How to switch to a scene without reloading its contents?
« on: February 06, 2015, 07:41:30 am »
Hi.
When I use the "switch to scene" block to switch to a scene, everything in the scene get automatically reloaded.
For example, in scene 1 I have ten enemies that the player can kill. After that, the player goes on to scene 2. However, when he/she returns to scene 1, each enemy comes back alive and goes back to its original position because everything in the scene is automatically reloaded, which doesn't suit the logic of my game.
Since there are lots of objects in my game that the player can interact with, writing the position and condition of each and every actor into attributes doesn't seem practical. (or is it?)
Is there any way to work around this problem?
Thanks in advance!

Pages: 1