[solve]Compilation error

1968

  • Posts: 103
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: 2014
Your "get item" blocks in the if statement must be inside "as number" blocks, when using the < and >= blocks.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

1968

  • Posts: 103
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: 2014
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.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

merrak

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

1968

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

1968

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

merrak

  • *
  • Posts: 2539
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: 103
Hi Merrak,
Bug fixed!
Everything is working.
Thank.