|
|
Speedmeter
http://users.pandora.be/roovers/bycicleesample.swf This is a game i've been working on lately. But now I have a problem with the speedmeter( the half circle in the bottom right corner of the game). I guess you already see what the problem is. You can see in the left top of the game a number. That is the speed. So whene the speed is 1 the arrow of the speedmeter has to be standing the first line in the meter. Whene the speed is 2 it has to be standing on the 2nd line. And this has to go like that with the other speeds also. I used this code in the arrow.
Code: onClipEvent (enterFrame) {
if (rotspeed < _root.thespeed){ this._rotation++ } if (rotspeed > _root.thespeed){ this._rotation-- } } what is wrong with this code?
FlashKit > Flash Help > Flash Newbies
Posted on: 08-23-2003, 08:12 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|