Recent posts by Megadev on Kongregate

Flag Post

Topic: Game Programming / Site-locking

Hi people,

I’m about to make my game public on Kongregate but was wondering if it’s adviseable to site-lock my game so that it’s only playable via Kongregate? I was also toying with the idea of making MochiAds appear if the game gets “stolen” by checking the domain it’s being played from; has anyone tried this to good effect?

Cheers,

Mike.

 
Flag Post

Topic: Game Programming / Mouse.hide() problem

Thanks for that – MOUSE_OUT and MOUSE_OVER do indeed work; it turned out I was overwriting my own Mouse.hide(); call somewhere else in the code. I also forgot that you could add an EventListener to the stage itself, like so:

stage.addEventListener( MouseEvent.MOUSE_OUT, mouseOut );

Anyway, it’s all sorted now, cheers for the help. :-)

 
Flag Post

Topic: Game Programming / Mouse.hide() problem

Afternoon everyone,

I’ve got a problem with hiding and showing the mouse pointer. I’m using “Mouse.hide()” to hide pointer which works fine, but it won’t reappear when it leaves the stage. This is the code I’m using:

if (mouseX >= 0 && mouseX <= stage.stageWidth && mouseY >= 0 && mouseY <= stage.stageHeight)
Mouse.hide();
else
Mouse.show();

I thought that I could hide the pointer on MouseEvent.MOUSE_OUT, but there doesn’t appear to be a MOUSE_IN event that I can detect to show the pointer again. Does anyone know where I’m going wrong?

Cheers,

Mike.

 
Flag Post

Topic: Game Programming / Highscores not appearing

I think I submitted a score locally, but not via Kongregate. Anyway, it’s all working now, thanks for the reply!

 
Flag Post

Topic: Game Programming / Highscores not appearing

Hi everyone,

I’ve got the Kongregate API implemented and (apparently) working, but I don’t get the “Scores” panel appearing to the right of my game. I’m wondering if this is because my game hasn’t been published yet, or do I need to setup the highscores table somewhere? Hope someone can help me out. :-)

Cheers,

Mike.

 
Flag Post

Topic: Game Programming / Getting the Kongregate API to work with Flex Builder 2

Hi everyone,

I’m new here and trying to get the Kongregate API to work with my game. I’m writing in AS3 using Flex Builder 2, and have tried adding the KongregateAPI.swc to my project’s library path, but the console just spits out the error “unable to load SWC KongregateAPI.swc”. Flex Builder’s error.log gives a bit more info:

!ENTRY com.adobe.flexbuilder.project 4 43 2008-02-02 15:04:07.171
!MESSAGE Uncaught exception in compiler
!STACK 0
unable to load SWC KongregateAPI.swc
at flex2.compiler.swc.SwcCache.getSwc(SwcCache.java:230)
at flex2.compiler.swc.SwcCache.getSwcs(SwcCache.java:151)
at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:78)
at flex2.compiler.swc.SwcCache.getSwcGroup(SwcCache.java:67)
at flex2.compiler.CompilerSwcContext.load(CompilerSwcContext.java:52)
at flex2.tools.oem.Application.recompile(Application.java:723)
at flex2.tools.oem.Application.compile(Application.java:530)
at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:224)
at com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.ASApplicationBuilder.build(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.ASBuilder.build(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.buildApplication(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Can anyone tell me where I’m going wrong? I tried looking at arcaneCoder’s AS3 API Integration post, but it all seems geared towards developers using Flash CS3, unless I misread it. Anyway, thanks for your time, and sorry if this is a dumb question!

Regards,

Mike.