Game Maker's Garage Forum
Game Creation => GameMaker => Topic started by: GMG Kurt on May 01, 2011, 04:22:46 PM
-
I've started an RPG since I'm almost done with TRON, and have made some headway, but have encountered an inexplicable syntax error.
http://www.mediafire.com/download.php?ol16auqo4kyir6e
it's in line 30: pco = pco + nx
LET
pco = player coordinates (used just like the arrayNum in Al's 'How to Fake an Array')
nx = new x value by grid not pixels (where the player will move if it can)
-
If your using Grid nav, with silver's sprites, Instead of making each map sprite a different picture, load the whole tileset into GM on two or three cards, and copy-paste tiles on to the map. It saves a lot of time in photoshop, and memory on your computer. Also saves room in your game's folder.
Also, I import the blank map and just copy paste that when I need it.
-
the reason I have all of them like that is because each house was going to have a different interior, and instead of using cards to portray each interior there's one card that will have a few generic designs it can create with sprites. It isn't started yet, but you can check out the beginnings in card 11.
-
only looked at it quickly. I'll have more time tomorrow. Because you have a line near the beginning that takes up two lines (the array line), the actual error is on line 31.
-
okay here's line 31:
LET area$ = space type
pco = player coordinate, by grid not pixels
-
String variables need to be in quotes. Lol, hope I solved your problem.
-
THANK YOU! That actually worked! I thought it wasn't necessary for one word strings! it was on line 32 because it counted the array as two extra lines. there was the initial and then the text and text overflow. Thanks again Zoo.
-
Yep. Your welcome. I had that problem I while back too.
-
yep everything (except a non related glitch) is working fine. Thanks again Zoo