Recent posts by ehaugw on Kongregate

Flag Post

Topic: Game Programming / Split my project into multiple files

Originally posted by NineFiveThree:

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ed3.html

You can export things into swc files, which can be used by other parts of your project.

Gonna check this out, thanks.

Originally posted by Draco18s:

You can also make swfs that get called in as external files. You then just need to recompile the bits that change and then run the main container swf.

But it can get messy and impossible to maintain later.

I did not make that project. I have no idea what any of those do. Updating 1 slide to do something slightly different is a pain in the arse because half the code in any given swf won’t work (runtime errors) unless its run through the parent swf, so bug fixing is almost impossible: you can’t test the slide’s functionality without compiling it and then running the main container.

If it’s impossible to maintain, it’s not an option :P

Originally posted by CuriousGaming:

If you’re using Adobe Flash, turning off compression for images and audio can improve your compile time. You can turn it back on for the final build.

Probably the best suggestion I’ve read on the entire internet. Such a fast and easy trick :P

Originally posted by player_03:

Just to clarify NineFiveThree’s answer, you can export an SWC by going to File → Publish Settings → Flash and checking “Export SWC.”

You will need to check the Export for Actionscript button for each symbol that you want to use. And you’ll want to get rid of any remaining timeline code and disable the document class; you only want to export graphics during this step.

I’m quite familiar with link AS linkage, and google as well (still ask for help here… the irony!), but thanks anyway ;)

 
Flag Post

Topic: Game Programming / Split my project into multiple files

Yo guys, my flash game is coming along, and so is the compile time, so I tough “what if I don’t have to recompile everything everytime I’m updating it?” My question is therefore, is there a way to split up the project into files that contains a movieclip exported for AS, that can be compiled standalone (compiling the corresponding AS file, and all other classes used). When I wanna change for instance the player class, I only wanna to recompile the player, not the zombies, crafting UI and stuff like that?

In fact, compiling the code isn’t a serious problem compared to exporting the graphics, so it’s also an option to have separated files containing each graphic clip, and importing it to the main project.

Sorry if I explained myself poorly.

 
Flag Post

Topic: Game Programming / Anyone wanna make a game with me?

Originally posted by Fenragus:

So i would like to make a game.I have no skills in progamming whatsoever but i might learn some.I am looking for people to help me make a 2D shooter (I havent made the statistics in my head yet) but ill fill you in with the details via Skype.
(If you have a microphone that would be great!).So here is the general idea:Apocalyptic 2D shooter.I want this to be very addictive so ill need a LOT of ideas.I have a few of mine like shops,story,maybe multiplayer.I think we will be using Game Maker or Flash.If anyone is interested contact me via Skype:aurimas.fenragus
:)

You should rename the topic to “Anyone wanna make a game for me?”.

 
Flag Post

Topic: Game Programming / Detention Simulator - Feedback please

My opinion is: You’ve been making games like this for 3 years now, it’s time to move on, make a shooter or something enjoyable. There’s a lot of tutorials out there.

 
Flag Post

Topic: Game Programming / Kongregate can't find my font

Originally posted by GregTheTraceur:

I truly hate this. (this being the embedding requirement)

Now all my text is blurry, and there’s nothing I can do about it, so my game looks super sloppy…

Again, I’ve never used FD, so I can’t help you much. I would suggest googling “FlashDevelop font embed trouble”.

 
Flag Post

Topic: Game Programming / Kongregate can't find my font

I’ve never used FlashDevelop, but in the regular Flash, you have to embed fonts.

 
Flag Post

Topic: Game Programming / Trouble with "stage" in external SWF

Lol, I went full retard… Thanks Vesperbot.

 
Flag Post

Topic: Game Programming / Trouble with "stage" in external SWF

Originally posted by ehaugw:

Actually, that makes sense, thanks.

It works, thanks bro.

 
Flag Post

Topic: Game Programming / Trouble with "stage" in external SWF

Actually, that makes sense, thanks.

 
Flag Post

Topic: Game Programming / Trouble with "stage" in external SWF


import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;

function startLoad()
{
   var mLoader:Loader = new Loader();//Or use ProLoader
   var mRequest:URLRequest = new URLRequest('Oasis.swf');
   mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
   mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
   mLoader.load(mRequest);
}

function onCompleteHandler(loadEvent:Event)
{
   addChild(loadEvent.currentTarget.content);
}
function onProgressHandler(mProgress:ProgressEvent)
{
   var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
   trace(percent);
}
startLoad();

Gz with 666 posts btw.

 
Flag Post

Topic: Game Programming / Trouble with "stage" in external SWF

I can’t access the stage property in an externally loaded swf, I’m quite sure someone has heard about this problem before. Would anyone bother to explain it?

 
Flag Post

Topic: Game Programming / Unity3D Dev Recruitment

Who will host the server? Who will pay for the domain? How will the income be shared? Which language are you using?

 
Flag Post

Topic: Game Programming / Show us a screenshot of what you're working on!

Here’s my skill/attribute UI

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:
Originally posted by ehaugw:
Originally posted by 6thgraderhere:

Right, it’s been a while. How’s it coming along? Is the ETA still xmas?

Yeah, something like that.

It’s Halloween right now, game coming along smoothly as expected? :3

Nope, I didn’t include exams in my estimation :P Although, there’s a small chance that the a locked beta will be done before 2014. We’ve finished the talent specs, navigation items and stuff like that. All that remains is the city fortification and villager training, as well as some major gameplay stuff.

Also, the most important still remains… The sponsorship :P

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:

Right, it’s been a while. How’s it coming along? Is the ETA still xmas?

Yeah, something like that.

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:

So, how’s it coming along?

No progress at all, trollolol

I’ve started on university 2 weeks ago, I’ve not done anything else than partying :3

When the hard core party times have passed, and I’ve done my studies, I might be able to code again ;)

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

http://anaron.comoj.com/Oasis/pics/

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:

Oh, and I was wondering. What’s the storyline of the game? Like, why are you here, where did these zed come from, etc. Or are you saving that for later on in the development timeline?

I’ll get my buddy to answer that for ya, he made the story (which is awesome).

 
Flag Post

Topic: Game Programming / as2:main timeline problem

Originally posted by darkjonas8:

i dont think thats for as2…

actually, it is

 
Flag Post

Topic: Game Programming / as2: doing hittest with square using math

Originally posted by darkjonas8:

okay… i only want to check collision for the tiles that are in a specific range of the player, how could i check the collision on only the tiles that are within a 100 pixel range or so?

for (tile in tiles) {
    if (Math.sqrt(Math.pow(player.x - tile.x,2) + Math.pow(player.y - tile.y,2)) < 100) {
        //The range is less than 100 px.
    }
}

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:

Sounds pretty sweet, so what’s the estimated completion time?

Uhm, xmas maybe.

 
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:

Daayum, that’s a lot of crap I dunno ._. Also, are you thinking about putting the game on other websites?

Ofc, after I got my kong sponsorship I’ll spread it as good as I can. All versions except for the kongregate one will have limited content so you have to move to kongregate to play the full game.

 
Flag Post

Topic: Game Programming / as2: doing hittest with square using math

Originally posted by darkjonas8:

okay, i understand how to check if something collides with another thing now, but how do i check where they collide? like if i have a wall i want to go left until the right side of the player hits the wall, how would i do this? (like : if(rightsideofplayer hit wall) )

Then you start making vectors and do real calculations ;)

 
Flag Post

Topic: Game Programming / as2: converting code to main timeline

Originally posted by Draco18s:

Or be correct and use addEventListener

AS2 guys don’t wanna use event listeners.

 
Flag Post

Topic: Game Programming / as2: converting code to main timeline

Originally posted by darkjonas8:

I want to put the code i had on my movieclip and put it on my main timeline, i did so but i get this error:

Scene=Scene 1, layer=main, frame=1, Line 1 Clip events are permitted only for movie clip instances

i get this for onClipEvent(enterFrame) and onClipEvent(onLoad), please help :) thx

This is the point you would normally start using AS3, or at least classes. To be honest, I’ve never used classes in AS2, so I can’t really help you. I would suggest sending a PM to GameBuilder15, he’s the master of not-moving-on-to-AS3.