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.

DarkBASIC Professional Discussion / Problem with text slider?

Author
Message
Mugen Wizardry
User Banned
Posted: 27th Jun 2010 01:23
Hi. Can I ask what is wrong w/ this code?

I need for it to stop at a certain point (tx2#), and start+slide at a certain point (tx#).

the problem is, it's not sliding in correctly..



thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 27th Jun 2010 01:36
very complex syntax for an easy thing to do.






ciao faccie da sedere!
Mugen Wizardry
User Banned
Posted: 27th Jun 2010 01:43
it's PERFECT!

Thanks, ermes!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Ermes
23
Years of Service
User Offline
Joined: 27th May 2003
Location: ITALIA
Posted: 27th Jun 2010 01:47
you're welcome.

ciao faccie da sedere!
Mugen Wizardry
User Banned
Posted: 27th Jun 2010 02:34
there's 1 more small thing i'm trying to implement.

scrolling text backwards.



this code isn't working

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 27th Jun 2010 07:32 Edited at: 27th Jun 2010 07:33
It's because tx# starts at zero and has nowhere to go from there. You really shouldn't use floats for screen coordinates since it'll always be whole numbers anyway. I'd also drop the =0 in "function scroll(direction=0,txt$)". And the line "delete dll 1" won't ever be seen since it is between functions.

Login to post a reply

Server time is: 2026-07-25 08:13:42
Your offset time is: 2026-07-25 08:13:42