Hi there! I need help to set a certain background for all pages in my game. I tried:
$PAGETEXT := $PAGETEXT + "<body background='URL'>"
but it doesn't seem to be working. Anything else I could try?
Accord to Quiller, this works:
$PAGETEXT := "<html><style>body {background: url('URL') ;}</style></html>" + $PAGETEXT
As I've said before... I'm a newb... I can't quite seem to get it to work...
Well what you suggested previously doesn't work anymore anyway...
What part is tripping you up?
The simple: {background: url('URL') ;}
I don't know where to insert the URL (I'm assuming where it says 'URL', but it doesn't work).
You're right, that's where you put it.
Copy and paste exactly what you have in your page script right now.
Sorry for the delay in response. It's definitely not working, but it may just be because my scripts aren't working.
Then copy and paste what you have. It may be a syntax error or something.
Well... the image is supposed to be a secret, so I'll link a random url.
$PAGETEXT := "<html><style>body {background: http://chooseyourstory.com/ ;}</style></html>" + $PAGETEXT
Yeah, that's the wrong syntax.
$PAGETEXT := "<html><style>body {background: url('http://chooseyourstory.com/') ;}</style></html>" + $PAGETEXT
Should be what you have.
WOO!! It works! But now this script overrides my "cover" page, so now my "cover page (example) is the same as the other pages. Is there a way to set this title page as a different background?
Yeah, just add an if statement. Find out what page number your first page is, then go:
IF $PAGEID != ## THEN BEGIN $PAGETEXT := "<html><style>body {background: url('http://chooseyourstory.com/') ;}</style></html>" + $PAGETEXT END
Replace ## with the first page number.
Are you a wizard!?
That's awesome! Thanks!
^Yes. Yes he is. And he sometimes wears fuzzy cat ears, but that is an unrelated statement (unless by wizard you meant wu-jen).