Recent posts by Mailesmyth on Kongregate

Subscribe to Recent posts by Mailesmyth on Kongregate

avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / Connectivity Status

Is there a way to determine if a game being played is actually connected before updating API stats?

I’m trying to figure out a way to make sure you get credited for playing a game only if you are actually connected……

What prevents someone from loading an idle game, going and playing/chatting somewhere else, and then merely coming back and ‘reconnecting’ to the idle games chat once they want the API to update to the leaderboards?

They never get badges so it’s not a major issue, but as a part-time developer, I don’t like having something flash related where i can’t figure out an anti-hack or anti-cheat method……….

Server connectivity is the only way i can figure to block it on kong, but i dont know if connectivity can be checked with AS……

example…. game updates to server every minute…. if no connection, game resets stats back to last legit update….. only if there is a connection to the API server will the stats and the .sol be updated.

Can it be done?

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Kongregate / Ultimate Kongregate Photo Topic

He’s only 20 months old at the time of the pic. That he can even keep them on is a good sign!

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Kongregate / Ultimate Kongregate Photo Topic

The next generation of kongregate’s finest……. Damian!


 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Kongregate / Ultimate Kongregate Photo Topic

me and my little girl – and no, I’m not asleep. I just knew my wife had the flash on.

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / Help making game

I hate to say it, but newgrounds.com can be a pretty good source for beginners at times.

http://www.newgrounds.com/bbs/topic/229808/48

scroll to the bottom of the page – the topic list continues on the next 2 pages

There are a lot of AS topics on many different subjects.

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / hitTest of a MC within a MC

Happy to have attempted to help…..

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / API Server Connection

I know that much already. I was wondering if the connection could be tested in-game to cause an in-game event based on the status of the connection to the API server.

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / hitTest of a MC within a MC

Find the _x and _y of the parent MC, and then use a little math to adjust to the desired point. For example, a 50px X 50px square is the outer MC, and the top left corner is where _x and _y are measured from. The second movie clip is right in the center of the first. So the _x and _y would be parent.x + 25 and parent.y + 25. Something tells me my AS isnt quite right, but you probably get the idea.

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / API Server Connection

Is there a way to test the connection within a flash?

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / Help! Movieclip inside Button

In my experience (using AS2, and Macromedia Flash 8), most (if not all) actionscript WILL NOT WORK in a movieclip that is within a button.

Rather than placing the movie clip in the button, keep them separate, and place BOTH of them into a third movieclip.

OR dont use a button symbol. A movieclip can do anything a button can and more.

 
avatar for Mailesmyth Mailesmyth 11 posts
Flag Post

Topic: Game Programming / Code that stops cheating

what i use is (ActionScript 2.0)…


// in the first frame on the main timeline
_global._focusrect = false;

the tabEnabled method I believe is mainly for individual items. The above method simply disables the yellow rectangle in the entire game. I dont THINK that the _global is necessary, but i use it anyway.