Recent posts by Ragnarok on Kongregate

Subscribe to Recent posts by Ragnarok on Kongregate

Nov 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / Multiple Key Press

Ahhh! That’s brilliant, now I at least know what’s going wrong.
I’m assuming there is no way around this… except for hoping that most of the public’s keyboards work better than mine?

 
Nov 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / Multiple Key Press

I am currently using the following FOR statement to detect key presses
if(Key.isDown(keyCodeHere)){
doWhatYouWantThisKeyToDo();
}
It works just fine for one or two keys, but it seems like some key combos eclipse other keys!
For instance:
If i hold the up key, my swf file recognizes the up key is down. If instead, I hold the left key AND the right key at the same time, my swf file can detect that both keys are down. But if i then hold down the UP key ALSO, it doesn’t detect the up key.

 
Mar 18, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / return Date

Thanks,
If you find anything it would be unbelievably helpful. UTC time will make things easier… but cheating is my main concern.

 
Mar 18, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / return Date

The AS Date class is nice and all… but I need some way to determine a standardized date for all users. The Date class derives the time from the computer the swf file is running on, so if I manually set my computer’s clock to 1:00p.m and you set yours to 3:00p.m. we will both get unique times, even if we are playing at the same time. The only solution I can think of is to request a Date object from the Kong server, which will give the same date to every user.

 
Mar 18, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / return Date

Is there a way to request a standardized date/time from the Kongregate server?

 
Mar 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / [Kongregate API] High Scores

Because I don’t know how to access the score data, what should I use?

 
Mar 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / [Kongregate API] High Scores

In the following code I attempted to store an array of the user scores from Kongregate into an array ‘userscores,’ but it doesn’t appear to be working properly. How do I change my code such that ‘userscores’ will contain the correct information?

//Connect to Kong server and submit initial score
_root.kongregateServices.connect();
_root.kongregateScores.submit(1000);
//Function called on completed load: returns array of userscores
var scoresCallback:Function = function (result:Object) {
userscores = new Array(result.list.length);
for (i=0; i<result>
userscores[i] = result.list[i].username;
}
return userscores;
};
//Request data from Kong server
_root.kongregateScores.requestList(scoresCallback, this);
//Set ‘userscores’ to the object pointed to by this. Hopefully the return value from
//scoresCallback
userscores = this;

 
Mar 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / Return Kongregate Username

thanks :)

 
Mar 14, 2008
avatar for Ragnarok Ragnarok 10 posts

Topic: Programming / Return Kongregate Username

Is there a way to receive a player’s Kongregate user name from the server?

 
Mar 19, 2007
avatar for Ragnarok Ragnarok 10 posts

Topic: Kongregate / Updated Games

the Airplane Game has been bug-edited and is easier… my little sister can beat up to level 26 :) Can You?