Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Lets Try again- Please help with this code

Author
Message
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 19th Jul 2003 21:58
Hi again, I did have this in another post but no one anwsered it, please do not think off this as spamming

I got the following code from Dark forge :

` -------------------------------------------------------------------------
` Roll-over Text Change DarkForge FAQ 21/12/2000
` -------------------------------------------------------------------------
` Coded for a forum request in 10 mins one evening to show how to do a
` text roll-over without any sprite collision or complicated arrays.



hide mouse
` Create a basic new mouse pointer (image 1)

ink rgb(0,255,0),0
line 8,0,8,16
line 0,8,16,8
get image 1,0,0,17,17

` Create a basic new roll-over mouse pointer (image 2)

cls 0
circle 5,5,5
get image 2,0,0,16,16



data$="hello"

tx=200
ty=150
tw=text width(data$)
th=text height(data$)
rollover=1

do
cls rgb(0,0,50)

sprite 1,mousex(),mousey(),rollover

if mousex()>=tx and mousex()=ty and mousey()=tx and mousex()=ty and mousey()
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 20th Jul 2003 03:00
you are missing part of the code at the bottom...how does it end?

vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 21st Jul 2003 01:35
See it all here. Read it and see if you can answer it:

http://www.darkbasicpro.com/apollo/view.php?t=13446&b=7

CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 21st Jul 2003 03:00
you want something like this?
souce button below.

CTP
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 21st Jul 2003 03:02
the {data$="hello"} should have been taken out, my bad.
CTP

Login to post a reply

Server time is: 2024-11-24 22:30:26
Your offset time is: 2024-11-24 22:30:26