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 - aprotasenya

Pages: 1
Ask a Question / Re: Putting a delay in "for each actor of type"
« on: May 25, 2014, 04:53:44 am »
I don't like making code directly for people

Thanks for still making it, Tuo!  :)
I also got this issue and while I wasn't sure I understood 100% of the explanation, the code you've made helped me a lot.

My issue (read above) was solved, so if you happen to come across the same thing, here's an explanation and a workaround from Dom:
"It seems the problem comes from how Haxe, the language behind Stencyl, returns values from the list. It seems to return everything as text; when you compare this to a number, in your case 0, it also casts the string to a number, by default 0. This makes it always return true. To solve this, simply wrap the 0 in an "as text" block."


Extensions / Re: List Utils (Sorter, Duplicate Remover, and 2D Arrays)
« on: April 29, 2014, 01:12:27 am »
Got an error with the 2D array.

I populate the array with zeroes (as number) and letters "x" (as text). And then a script loops through every item in the 2D array and if it's not equal zero (number) - removes the item. The thing is - it treats any text value as if it is a zero, so it does not remove an item with text in it.
I've also tried to check whether the item is zero as text, but had no effect.

Do I do anything wrong or is there an error on the extension's side?

Would be grateful for assistance.

Extension Ideas / Re: Google Analytics Extension [WIP]
« on: April 11, 2014, 01:49:13 pm »
Hey everyone!
This could seem like a necropost, but I'd give it a shot.

Could someone put together a simple and short guide how to make those pageviews work at least?

I have installed and enabled the extension, I see three blocks, but I have no idea what should I do with them. I also was unable to find the InitGa, where I have to put my GA tracking ID.
Would be extra-awesome if someone of more knowledge could help.


Ask a Question / Re: saving / loading... reset my lists!
« on: June 28, 2013, 04:30:00 pm »
if you are still struggling, I've made a little useful loop for myself, which reenters all the list's items in it, so that I could save default values as well.
If you build yourself smth like this, you can just delete a current encounters GA, create new, import text from file, and then just run this loop while saving (actually, at least once, this may not be every time you save).

So, my example:
I have list GAs: "top.names" and "top.points" - and also a text attribute "buf.txt".
On every loop step the buf.txt is assigned one of the list's item and then this very item is replaced with the content of buf.txt (which is similar, yet now it is entered with behavior, so it can be saved).

Ask me if something stays unclear in this. :)

Ask a Question / Re: RaNdOm colors
« on: June 22, 2013, 02:37:30 pm »
How would I go about creating random colors in stencyl?

If the question is still floating, it's perfectly answered here:,4185.0.html

Ask a Question / Re: random color
« on: June 22, 2013, 02:34:20 pm »
Thanks a lot for this code! I thought it should be done in some numerical way, but had no chance to write the code myself. This is simple and yet works great!

Ask a Question / Re: Tiles and events
« on: June 09, 2013, 01:20:08 pm »
...removing a tile placed in the scene designer won't remove its collision box.

What if it's a tile with no collision box? It was placed in the scene designer, but it's collision box was deleted in the tileset editor. Would that work?
(sorry for disturbing the dead thread, the issue is too interesting :) )

Bombini, if you're still thinking on this issue sometimes, you could also try using Tile API, which would let you create needed tiles on runtime and then detect, when some of them were destroyed.
Check Stencylpedia for more info:

Ask a Question / Re: Getting an actor's ID
« on: October 16, 2012, 05:14:46 pm »
Hi, captaincomic!
I'd like to ask for your help on this. I need to get Actor.Instance ID/name to differ 4 instances of one actor type in the scene. I've tried to make a block like you've explained here, but seem to have troubles with the code: Stencyl mentions errors in code everytime I try to compile.
Would you please help? How in details do I get the actor's instance's ID/name to use it later?

Thank you.

Pages: 1