Help for NEWBIES. NOTE: I am a newbie so I cant really help.

Previous topic - Next topic

Ian Price

Quote
SETCURRENTDIR "Media"                               //  -------> "Media" needs to be in brackets - ("Media")
LOADSPRITE "blackout.png" ,0
DRAWSPRITE ,0 ,300,150                              //  --------> You have a comma before the 0 (zero)
SHOWSCREEN
MOUSEWAIT
END
I came. I saw. I played.

blackout12

do you think you know what the problem is? If the .app thing you guys are talking about is located under project then I have my graphics in there. here is the code that isnt working:
SETCURRENTDIR "Media"
LOADSPRITE "blackout.png" ,0
DRAWSPRITE ,0 ,300,150
SHOWSCREEN
MOUSEWAIT
END

blackout12

THANK YOU so much!! its working, thank you  :D =D :) :enc: 8) :good:

blackout12

sorry, awesome experienced people, I have another question, I have the backround of my person set to the values in the help guide, 255, 0, and 128 but it shows up as pink, not transparent

Ian Price

You need to ensure that the colour is created as at least a 24bit .BMP or .PNG.

MSPaint fecks up values from time to time when saving that colour as a .PNG, so always save it as a 24bit .BMP first. You are pretty much guaranteed to get it working properly that way. You can then convert it to a .PNG if required.

I don't use other paint packages, so can't say if it's an MSPaint issue or just a general GLBasic issue.
I came. I saw. I played.

blackout12

Im having a problem, i saved it as a 24 bmp. but how do I convert it to png.?

Ian Price

Just use the "SAVE AS" option in your paint program and select .PNG.
I came. I saw. I played.

blackout12

thank you Ian Price, it didnt need to be png and it worked. thank you anyway. thank you so much for your help. I have two last questions, how much is 80 EUROS in american dollars because I am considering buying GLBasic, and how do you create a font, because I went to "create font" and selected a saving path, but when I clicked on " OK,CREATE" noting happened. I later looked at the saving path and it was there, but nothing had changed in GLBAsic

Ian Price

It's approx. US $105.

Are you sure the path was correct? My SAVEFONT saves my image on the desktop - perhaps your does too. Just move/copy it into the Media folder.

The SAVEFONT tool just creates a new font and doesn't make the font in the app - you have to load it and then use SETFONT (see the helpfile for more info how to use it).
I came. I saw. I played.

blackout12

how do you convert a mp3 file into a "wav PC" file?

Ian Price

Seriously? While we can answer questions like that here, try Google for things a bit more outside the box. There are loads of different converters out there - some free some not so. Try looking up Audacity.
I came. I saw. I played.

blackout12


Darmakwolf

Quote from: blackout12 on 2012-Dec-21
SETCURRENTDIR "Media"
LOADSPRITE "blackout.png" ,0
DRAWSPRITE ,0 ,300,150
SHOWSCREEN
MOUSEWAIT
END

didnt work   O_O :blink:

Your problem here is missing parenthesis, as well as a comma after DRAWSPRITE. The following should work, bro.

SETCURRENTDIR("Media")
LOADSPRITE "blackout.png",0
DRAWSPRITE 0 ,300,150
SHOWSCREEN
MOUSEWAIT
END

Ian Price

QuoteYour problem here is missing parenthesis, as well as a comma after DRAWSPRITE. The following should work, bro.
I'd already mentioned that - see first post on this page. :)
I came. I saw. I played.

Darmakwolf

Quote from: Ian Price on 2012-Dec-27
QuoteYour problem here is missing parenthesis, as well as a comma after DRAWSPRITE. The following should work, bro.
I'd already mentioned that - see first post on this page. :)

oh, right. didn't see that.