Topic: Programming / Timer Help!!!
You need to use “==” by using if.
So:
if(_root.timetxt2 == “00:05”){
_root.cpu.speed -= 1;
_root.pspeed -= 1;
_root.PlayerSpeedBox.text = _root.pspeed;
_root.ComputerSpeedBox.text = _root.cpu.speed;
}
|
Dec 4, 2008
|
Topic: Programming / Timer Help!!! You need to use “==” by using if. if(_root.timetxt2 == “00:05”){ |
|
Dec 3, 2008
|
Topic: Programming / how to movment the char to the pos he is pointing? _x += Math.cos(_rotation*Math.PI/180); _y += Math.sin(_rotation*Math.PI/180); |
|
Dec 1, 2008
|
Topic: Programming / AS2 question about statements Better version of your code: private function onPress():Void {This code needs to be put in your class.And the questions: 1. The last one that is opened 2. No, you can’t |
|
Dec 1, 2008
|
Topic: Games / Brute Wars 2 Map Help For everyone who has a problem with the “unreachable” shop in the cave, you can reach it by: |
|
Nov 24, 2008
|
|
|
Nov 22, 2008
|
Topic: Programming / revenue %? Because you said that your games were exclusive for kongregate. If you change that, your revenue will drop. |
|
Nov 22, 2008
|
Topic: Kongregate / The K Files |
|
Nov 20, 2008
|
Topic: Kongregate / Some notes about dealing with stolen games on Kongregate If somebody copys his game from a tutorial, without adding anything else, does it count as stolen? |
|
Nov 20, 2008
|
Topic: Programming / Save Option |
|
Nov 19, 2008
|
Topic: Programming / sound problem It’s probally because there isn’t any sound playing. If you try to play sound, it waits before it actually plays. Adding a background-music is a good way to fix this. |
|
Nov 19, 2008
|
Topic: Programming / Background Color codes after an upload Some more colors |
|
Nov 17, 2008
|
|
|
Nov 17, 2008
|
|
|
Nov 16, 2008
|
Topic: Kongregate Labs / highscore overlapped by ships You can also swap the health bar to the highest dept when attaching a enemy: root.attachMovie(“MiniBoss”, “miniBoss”, root.getNextHighestDepth()); |
|
Nov 16, 2008
|
Topic: Programming / Creating an object that could be dragged? [Kinda Solved] on (press) {
startDrag("");
}
on (release) {
stopDrag();
}
|
|
Nov 16, 2008
|
Topic: Programming / Flash game that can get user stats from Kongregate? AS2 username: root.kongregate_username |
|
Nov 14, 2008
|
Topic: Kongregate Labs / Pause button too sensitive
var pauseListener:Object = new Object();
pauseListener.onKeyDown = function() {
if(Key.isDown(80)) {
pauseTrue = !pauseTrue;
}};
Key.addListener(pauseListener);
|
|
Nov 11, 2008
|
Topic: Programming / [Kongregate API] Statistics/Challenges What does “root.kongregate_username” report by somebody that isn’t logged in? |
|
Nov 11, 2008
|
Topic: Kongregate / What Happens if I earn a Card I already have? They’re the same. Only the version is different. |
|
Nov 7, 2008
|
Topic: Programming / Can the Kong API be used to do Game Saves? Flash usually saves data by shared objects, so why would you use the API for it? |
|
Nov 6, 2008
|
Topic: Kongregate Labs / Points for Upload A few months ago, you got 25 points for uploading. |
|
Nov 6, 2008
|
Topic: Kongregate Labs / Pausing... You’re using: if(Key.isDown(SPACE))But it should be: if(Key.isDown(Key.SPACE)) |
|
Nov 2, 2008
|
Topic: Programming / Problem with Kongregate API Are you connected? _root.kongregateServices.connect(); |
|
Nov 2, 2008
|
Topic: Kongregate Labs / Compiler Errors You can’t use ; by making a function. function onLoad(); {}You should use:function onLoad() {}You have the same problem by theonEnterFrame(); {}
|
|
Oct 31, 2008
|
Topic: Programming / Determining a random value between a negative and positive number (Math.random()*200)-100 Thats a random number between 100 and 200. (Math.random()*100)-200 |