Hi,
I've been having fun and going along pretty well loading sprites within a loop for a card game. It took 5 or 6 seconds to load a deck of cards from a .png file so I thought I'd try to load them using the preprocessor command with brushes to speed things up in the compiled version. I keep getting an error that says "Comma expected Current Line: 10" when I run this script:
Code: Select all
@display {Title="Cards", Color=#GREEN, Width=800, Height=600, Sizeable=True}
@brush 1, "56cards.png", {x= 1+ 0*72,y=1,width=72,height=96}
@brush 2, "56cards.png", {x= 2+ 1*72,y=1,width=72,height=96}
@brush 3, "56cards.png", {x= 3+ 2*72,y=1,width=72,height=96}
@brush 4, "56cards.png", {x= 4+ 3*72,y=1,width=72,height=96}
@brush 5, "56cards.png", {x= 5+ 4*72,y=1,width=72,height=96}
@brush 6, "56cards.png", {x= 6+ 5*72,y=1,width=72,height=96}
@brush 7, "56cards.png", {x= 7+ 6*72,y=1,width=72,height=96}
@brush 8, "56cards.png", {x= 8+ 7*72,y=1,width=72,height=96}
@brush 9, "56cards.png", {x= 9+ 8*72,y=1,width=72,height=96}
@brush 10, "56cards.png", {x=10+ 9*72,y=1,width=72,height=96}
@brush 11, "56cards.png", {x=11+10*72,y=1,width=72,height=96}
@brush 12, "56cards.png", {x=12+11*72,y=1,width=72,height=96}
Nathan