[solve]Compilation error

1968

  • Posts: 92
Hello community !!!
My stencyl is haunted by a mistake.
I wouldn’t want to rewrite the code ...
Waiting for help! :o

« Last Edit: September 06, 2019, 09:24:20 pm by 1968 »

Luyren

  • *
  • Posts: 1753
Your "get item" blocks in the if statement must be inside "as number" blocks, when using the < and >= blocks.
Working.

1968

  • Posts: 92
Hi Luren,
I fixed, but the problem did not dare ....
There was already such an error; code rewriting helped.
But this is a long time.
Screen HAXE to the rescue ???

Luyren

  • *
  • Posts: 1753
It looks like your attributes are also numbers. You have to put those "get items from lists" in "as number" as well, when you set your attributes.
Working.

merrak

  • *
  • Posts: 2493
If you select the "Preview Code" tab, copy and paste all the code that you see.

1968

  • Posts: 92
Hi merrak!
I posted the code, see it ...
Hope this helps!

1968

  • Posts: 92
HI Luyren,
I will try to fix it according to your advice! 8)

merrak

  • *
  • Posts: 2493
You have two attributes with the same internal name, _12. You can view the internal names of attributes by opening the attributes palette for that behavior and clicking on each one. Find one of the attributes with the internal name _12 and change it to something else.

1968

  • Posts: 92
Hi Merrak,
Bug fixed!
Everything is working.
Thank.