
-----------------------------------
EvoX
Sun Mar 06, 2005 12:29 pm

Background Help
-----------------------------------
Hello, I was just wondering if anyone can help me with the background. If you run this program the words "Do You Have what i takes" appear with a black background... as you see after this there is a night sky background.... is there anyway i can place that background when the words "Do you have what it takes?" are on it? Heres my code? Please attem
% Intro 
setscreen ("graphic,title: The Apprentice By: Andrew Saggiorato,nobuttonbar") 
colourback (black) 
cls 

% Play Music 
process DoMusic 
loop 
Music.PlayFile ("Apprentice.wav") 
end loop 
end DoMusic 

fork DoMusic 

% Font Effects 
var word : string := " Do You Have What It Takes?" 
var cola : int := 30 
colorback (black) 
for row : 1 .. 25 
for col : 1 .. 80 
put " " .. 
end for 
end for 
color (white) 
for a : 1 .. length (word) 
locate (22, cola) 
cola += 1 
put word (a) 
delay (100) 
end for 

% Desired Star Background, I want this background with the text above.. 
for decreasing i : maxy .. 0 
RGB.SetColour (1, 0, 0, i * (1 / maxy)) 
Draw.Line (0, maxy - i, maxx, maxy - i, 1) 
end for 

for a : 1 .. 500 
var x := Rand.Int (0, maxx) 
var y := Rand.Int (150, maxy) 
var c := Rand.Int (16, 31) 
Draw.Dot (x, y, c) 
end for 

drawfillbox (0, 0, maxx, Rand.Int (25, 30), 7) 
var hold : int 
for i : 1 .. 200 
hold := Rand.Int (0, maxx) 
drawfillbox (hold, 0,hold+Rand.Int (10,20), Rand.Int (0, 100), 7) 
end for


-----------------------------------
person
Sun Mar 06, 2005 1:47 pm


-----------------------------------
cant u just put the text there after the background is drawn???

the user wont notice

-----------------------------------
Flikerator
Sun Mar 06, 2005 3:17 pm


-----------------------------------
You could also just make a picture in say, paint of the text. Insert the pic and there you go.

-----------------------------------
mike200015
Sun Mar 06, 2005 4:10 pm


-----------------------------------
sorry i dun get wat u want.. so u jus want to make the words appear after the night sky background is drawn??

-----------------------------------
person
Sun Mar 06, 2005 6:09 pm


-----------------------------------
Oo sorry but my last post didnt make sense..anyways use Font.Draw
