ReadString in to 2D Array – help Needed!

About Monkey 2 Forums Monkey 2 Programming Help ReadString in to 2D Array – help Needed!

This topic contains 2 replies, has 3 voices, and was last updated by  Jesse 1 year, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9347

    Amon
    Participant

    The content of the level file is below.

    The monkey code to load the data into the 2D Array is below

    When I run it there is no crash but the GameArray is empty. Where am I going wrong with this?

    Thank you.

    #9348

    abakobo
    Participant

    When I run the algorithm it gives me a non empty array… Don’t know what you’re trying to do with it but it’s not empty.
    Have you checked that your loadstring gets any file (you don’t get message if no file were found I think)

    The code I ran (you can copy-paste it directly into ted)

    [/crayon]
    #9349

    Jesse
    Participant

    you need to
    #import “level1.txt”

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.