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 / help me plz

Author
Message
razorblade
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location:
Posted: 10th Feb 2003 19:51
firstly hi everyone

im trying to make a simple 1st person shoot em' up using db classic
so far ive made a simple menu with music ,background and the actual menu but i need some text effects

i would like someone to tell me how to make the text so when the curser is over it that text starts rumbling thx
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 11th Feb 2003 00:25
Find the coords of the mouse, and when its over the certain area, delete the string and paste it in different areas

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Sly D
22
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 11th Feb 2003 00:47
sync rate 0
sync on

rem Text for our menu
new_game$="New Game"

rem Position for our text
x=100
y=100
rem Now get the width and the height of the text
w=text width(new_game$)
h=text height(new_game$)

do
cls rgb(0,0,0)

rem Detect if the mouse is over text
if mousex()>=x and mousex()<=x+w and mousey()>=y and mouse ()<=y+h
ink rgb(0,232,0),0
rollover=2
if mouseclick()=1
new_game$="You clicked me!"
endif
else
ink rgb(255,255,255),0
rollover=1
endif
text x,y,new_game$

sync
loop

Hope this will help you. Just change the code the way yo like it.
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 11th Feb 2003 01:45
Cool Sorry, I didnt know if you wanted code

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
Sly D
22
Years of Service
User Offline
Joined: 15th Oct 2002
Location:
Posted: 11th Feb 2003 12:57
I didnt know if he wanted code too just thought it would be easier to explain with the code.
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 11th Feb 2003 14:15
Yea I would have, cept I dont have code on this comp and didnt want to type it all out- was in a rush. Good job anyways

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
razorblade
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location:
Posted: 11th Feb 2003 17:38
thanks for the code but it doesnt recognize the parameters
thx anyways D>

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 11th Feb 2003 22:45
Yea,,,you have to edit it yourself....


RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
razorblade
21
Years of Service
User Offline
Joined: 10th Feb 2003
Location:
Posted: 11th Feb 2003 22:56
lol im just being lazy

Login to post a reply

Server time is: 2024-11-24 03:05:13
Your offset time is: 2024-11-24 03:05:13