Jump to content
Oliver Hope

Clearing arrays _ Solved!

Recommended Posts

Hey all

Im needing to clear a few arrays at the end of my game before the new round.

I tried setting them to an array called null which didn't have an items inside but this didn't seam to work.

any other suggestions?

Ylands_181110_161605.thumb.png.8f2a0491f03b8a237846b5b41d091054.png

Edited by Oliver Hope_P1

Share this post


Link to post
Share on other sites

Try using the SPLICE command.  For "Index" give 0, and for "Count" insert a GET LENGTH tile to capture the whole array at once.

 

array_splice.png.4b880155062a8fcd2d665b0cab19480c.png

  • Thanks 1

Share this post


Link to post
Share on other sites
22 hours ago, Indomitus said:

Try using the SPLICE command.  For "Index" give 0, and for "Count" insert a GET LENGTH tile to capture the whole array at once.

 

array_splice.png.4b880155062a8fcd2d665b0cab19480c.png

Thats an interesting way to do it and it worked!

thank you very much @Indomitus 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×