Recent posts by Vara on Kongregate

Subscribe to Recent posts by Vara on Kongregate

Dec 4, 2008
avatar for Vara Vara 89 posts

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 3, 2008
avatar for Vara Vara 89 posts

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
avatar for Vara Vara 89 posts

Topic: Programming / AS2 question about statements

Better version of your code:

private function onPress():Void {
if (!root.gpause && root.bullets>0) {
life -= root.damage;
}
}
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
avatar for Vara Vara 89 posts

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:
1. Go to the note that says you must ponder.
2. Click on the shop.

 
Nov 24, 2008
avatar for Vara Vara 89 posts

Topic: Technical Support / Ad Revenue dropped

Discussion & answer

 
Nov 22, 2008
avatar for Vara Vara 89 posts

Topic: Programming / revenue %?

Because you said that your games were exclusive for kongregate. If you change that, your revenue will drop.

 
Nov 22, 2008
avatar for Vara Vara 89 posts

Topic: Kongregate / The K Files

Jim explains

 
Nov 20, 2008
avatar for Vara Vara 89 posts

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
avatar for Vara Vara 89 posts

Topic: Programming / Save Option

More information

 
Nov 19, 2008
avatar for Vara Vara 89 posts

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
avatar for Vara Vara 89 posts

Topic: Programming / Background Color codes after an upload

Some more colors
It’s in another language, but I think you can understand it.

 
Nov 17, 2008
avatar for Vara Vara 89 posts

Topic: Programming / why dose evry game i upload....l

FAQ about making games

 
Nov 17, 2008
avatar for Vara Vara 89 posts

Topic: Programming / Hit detection on irregular shapes. Argh!

http://troygilbert.com/2007/06/25/pixel-perfect...
 
Nov 16, 2008
avatar for Vara Vara 89 posts

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());
root.healthBar.swapDepths(root.getNextHighestDepth());

 
Nov 16, 2008
avatar for Vara Vara 89 posts

Topic: Programming / Creating an object that could be dragged? [Kinda Solved]

on (press) {
startDrag("");
}
on (release) {
stopDrag();
}
 
Nov 16, 2008
avatar for Vara Vara 89 posts

Topic: Programming / Flash game that can get user stats from Kongregate?

AS2 username:

root.kongregate_username

 
Nov 14, 2008
avatar for Vara Vara 89 posts

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
avatar for Vara Vara 89 posts

Topic: Programming / [Kongregate API] Statistics/Challenges

What does “root.kongregate_username” report by somebody that isn’t logged in?

 
Nov 11, 2008
avatar for Vara Vara 89 posts

Topic: Kongregate / What Happens if I earn a Card I already have?

They’re the same. Only the version is different.

 
Nov 7, 2008
avatar for Vara Vara 89 posts

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
avatar for Vara Vara 89 posts

Topic: Kongregate Labs / Points for Upload

A few months ago, you got 25 points for uploading.
It doesn’t now because people were uploading games that they have made in 5 minutes.

 
Nov 6, 2008
avatar for Vara Vara 89 posts

Topic: Kongregate Labs / Pausing...

You’re using:

if(Key.isDown(SPACE))
But it should be:
if(Key.isDown(Key.SPACE))

 
Nov 2, 2008
avatar for Vara Vara 89 posts

Topic: Programming / Problem with Kongregate API

Are you connected?

_root.kongregateServices.connect();

 
Nov 2, 2008
avatar for Vara Vara 89 posts

Topic: Kongregate Labs / Compiler Errors

You can’t use ; by making a function.
You use:

function onLoad(); {}
You should use:
function onLoad() {}
You have the same problem by the
onEnterFrame(); {}

 
Oct 31, 2008
avatar for Vara Vara 89 posts

Topic: Programming / Determining a random value between a negative and positive number

(Math.random()*200)-100

Thats a random number between 100 and 200.
So:

(Math.random()*100)-200