# Changing true.false vars...(flash8)

**URL:** <https://forum.kirupa.com/t/changing-true-false-vars-flash8/224753>\
**Category:** Uncategorized\
**Created:** [May 5, 2007, 4:02am UTC](https://forum.kirupa.com/t/changing-true-false-vars-flash8/224753 "2007-05-05T04:02:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashbandit](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Flashbandit](https://forum.kirupa.com/u/Flashbandit)\
**Post date:** [May 5, 2007, 4:02am UTC](https://forum.kirupa.com/t/changing-true-false-vars-flash8/224753/1 "2007-05-05T04:02:44Z")

</div>

here is my code:

\_root.rfast = false;

rocklee.onEnterFrame = function() {

if(\_root.rfast == false) {  
moveSpeed = 5;  
}  
if(\_root.rfast ==true) {  
moveSpeed = 8;  
}  
if(Key.isDown(Key.RIGHT)) {  
this.\_x += moveSpeed;  
dir = “right”  
this.gotoAndStop(2);  
this.\_xscale = 100;  
}  
else if(Key.isDown(Key.LEFT)) {  
this.\_x -= moveSpeed;  
dir = “left”  
this.gotoAndStop(2);  
this.\_xscale = -100;  
}  
else if((dir == “right”) && Key.isDown(Key.CONTROL)) {  
this.gotoAndStop(3);  
this.\_xscale = 100;  
}  
else if((dir == “left”) && Key.isDown(Key.CONTROL)) {  
this.gotoAndStop(3);  
this.\_xscale = -100;  
}  
}

i need to know where i need to state that the variable “rfast” is true. what i want is to make it so when i play a certain animation, the char. gets faster. the way i set it up is, the char. is a MC on the 1st frame, inside that is a few more frames, which are MC’s that hold the animation. let me know if thats confusing, cause im a little confused and im writing it.
