Post: help with code
01-20-2011, 05:35 PM #1
.DeadlyMoDz25
Who’s Jim Erased?
(adsbygoogle = window.adsbygoogle || []).push({}); can someone please tell me why this code is scrolling backwards


doTextScroll()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.0 );
self thread destroyOnDeath (displayText);
i = 0;
for( ;; ){
if(i == 400) i = -400;
displayText setPoint( "CENTER", "BOTTOM", i, 13);
displayText setText("^5.::Welcome To DeadlySins v6::. ");
wait .01;
i++;
}}

destroyOnDeath(elem){
self endon("disconnect");
self waittill("death");
elem destroy();
}
(adsbygoogle = window.adsbygoogle || []).push({});
01-20-2011, 05:39 PM #2
Cyborg Ninja
PS3 Security FtW !
Originally posted by deadlyduckling View Post
can someone please tell me why this code is scrolling backwards


doTextScroll()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.0 );
self thread destroyOnDeath (displayText);
i = 0;
for( ;; ){
if(i == 400) i = -400;
displayText setPoint( "CENTER", "BOTTOM", i, 13);
displayText setText("^5.::Welcome To DeadlySins v6::. ");
wait .01;
i++;
}}

destroyOnDeath(elem){
self endon("disconnect");
self waittill("death");
elem destroy();
}


Not sure but I've seen arrays similar to this before.

Wouldn't it be.
The - on if(i == 400) i = -400
01-20-2011, 05:42 PM #3
.DeadlyMoDz25
Who’s Jim Erased?
Originally posted by packarda12 View Post
Not sure but I've seen arrays similar to this before.

Wouldn't it be.
The - on if(i == 400) i = -400


no i tried that and still went backwards
01-20-2011, 05:47 PM #4
Originally posted by deadlyduckling View Post
can someone please tell me why this code is scrolling backwards


doTextScroll()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 2.0 );
self thread destroyOnDeath (displayText);
i = 0;
for( ;; ){
if(i == 400) i = -400;
displayText setPoint( "CENTER", "BOTTOM", i, 13);
displayText setText("^5.::Welcome To DeadlySins v6::. ");
wait .01;
i++;
}}

destroyOnDeath(elem){
self endon("disconnect");
self waittill("death");
elem destroy();
}


Try and change the i++ to i--

The following user thanked x_DaftVader_x for this useful post:

.DeadlyMoDz25
01-20-2011, 05:55 PM #5
.DeadlyMoDz25
Who’s Jim Erased?
Originally posted by Homer
Try and change the i++ to i--


thanks a lot man that worked

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo