Btw. If someone want's to implement the mouseclick use this function:
Function MouseOver(txt$,x,y)
over=0
if mousex()>x and mousex()<x+text width(txt$)
if mousey()>y and mousey()<y+text height(txt$)
if mouseclick()=1
over=1
endif
endif
endif
Endfunction over
I've just added mouseclick() to get result.
Now that I set up everything and works fine, I have some more questions. Sorry, but we are here to help each other
1) Is there any plugin or any paper about loading .BIK files (The classic video files,compressed for games). If so any help would be appriciate.
2) How could I make Typewriter effect in DBPro.
Here Is what I port from my Visual Basic 6 experience to DBPRO:
do
cls
i = 1
Message$ = "Simple typewriter effect by dn5: Testing"
bpr$ = Mid(Message,1,i) + "_"
If i = Len(Message)
i=1
else
i=i+1
endif
print bpr$
loop
I think this should work but the only problem is Mid(), Its VB6 command and I dont have idea how could I make it works. The Mid
returns a substring containing a specified number of characters from a string.
strSubstr$ = Mid$("Dark Basic", 3, 4)
Will result to strSubstr this: "ark "
3) Is sync really need to be added to game source. I have my code and type sync on on beggining and sync rate = 40 at the end: sync
And all I see is black screen.