Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Tile Based Map Editor (Help plz)

Author
Message
MoWL
19
Years of Service
User Offline
Joined: 27th Jul 2006
Location:
Posted: 27th Jul 2006 16:30
Hi im trying to make a 2d RTS/RPG (not sure yet) 2d game. Iv been running into some problems and here is one...



when i run it it says "Runtime Error 501 - Image number illeagle at line 83"

im not sure what the prob is but i think it has to do with Data... help would be appreciated
Scraggle
Moderator
22
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Jul 2006 23:57
Your problem is probably because you only have 22 lines of data statements but you are reading the data for an array of 25. So, tiles(y,22) to tiles(y,25) will have a value of zero.
An image can't be numbered zero, hence the error.

I would have thought that you would have got an error when you tried to read data that doesn't exist though ... how odd!


Login to post a reply

Server time is: 2026-07-05 23:07:21
Your offset time is: 2026-07-05 23:07:21