[02 Aug 2006] Help with @BRUSH Preprocessor Command
Posted: Sat Jun 13, 2020 5:31 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 2 Aug 2006 22:47:34 -0600
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:
I initially had comments in there so took them out thinking that might be the problem. I retyped without spaces when calculating the coordinates thinking that was a problem. I hard-coded the exact coordinates thinking that was the problem. I retyped all into a new file in case I somehow got a control character or something in there. Oddly enough, it always seems to error on line 10 when loading these brushes regardless of what text is on that line. Can someone please tell me what I am doing wrong? Thanks!!!!!!!!
Nathan
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