Hi grog
Thanks for the advice, I have attached my new code using PASTE IMAGE instead of sprites. I have not been able to work out the code to store the words in the array properly, as when I call PRINT t$(1)
nothing happens.
Also can't seem to get the output displayed properly on screen, as discussed before, I have tried, but the code is breaking it down into single letters which is what I want, but I can't figure out how to calculate when it should move to a new line.
The problem is, I am still a Newbie !!!!
set display mode 800,600,32
hide mouse
sync on
sync rate 85
max=1000
dim x#(max)
dim t$(max)
global ptr
sw=screen width()
sh=screen height()
tw=text width(str$(bw#))
load bitmap "knight6.bmp",1
ox=32 : oy=25 :os=2 : s=6
x=0 : y=0 : bw#=ox*os
for i=1 to 60
get image i,x,y,x+ox,y+oy
inc x,ox
if x>=319
x=0
inc y,oy
endif
sync
next i
i=1
create bitmap 2,640,480
if os>1
for z=61 to 120
create bitmap 1,ox*os,oy*os
paste image i,0,0
set current bitmap 2
copy bitmap 1,0,0,ox,oy,2,0,0,ox*os+os,oy*os
get image z,0,0,ox*os+os,oy*os
inc i
next z
endif
set current bitmap 0
delete bitmap 2
do
for a=1 to max
read s$
for j=1 to len(s$)
c$=mid$(s$,j)
word$=word$+c$
next j
next a
for a=1 to max
t$(a)=mid$(word$,index)
ast=asc(t$(a))
lx=ast+29
paste image lx,xpos-bw#,ypos
wait 50
`Have tried to play around with screen width commands and text
`width commands to display text on screen properly, but
`I dont know how to move a word if its too long for the screen
`width, which results in broken words! Any ideas ???????
if xpos=>sw-bw#
xpos=xpos-xpos
ypos=ypos+bw#
endif
`if text reaches bottom of screen I'd like it to continue
`like the print command, by pushing the text up.
`if ypos=>sh
`xpos=0-bw#
` ypos=ypos+bw#
`inc ypos
` endif
inc index
inc xpos,bw#
sync
next a
loop
wait key
end
data "WELCOME TO THE NEW DEMO, "
data "BROUGHT TO YOU BY "
data "THE ONE AND ONLY COBRA !!! "
data "MASSIVE RESPECT GOES OUT TO ALL "
_store:
inc ptr
t$(ptr)=word$
return