Recent posts by nojkimserious on Kongregate

Flag Post

Topic: Game Programming / Friendly F#: fun with game programming and XNA

let is a term from mathematics: “let S be a set of polynomials in…”. Regardless, your reasoning is still meaningless, “I don’t like the name of this keyword, entire language is invalid”.

 
Flag Post

Topic: Game Programming / Friendly F#: fun with game programming and XNA

Originally posted by truefire:

F# uses indention for blocks

Just as bad. One of the first things I remember learning to code (literally, before hello world) is “Whitespace does not matter.”

Neither you or Drago have made any criticism other than “it’s not what I’m used to”. You shouldn’t instantly dismiss a language simply because it doesn’t use a c style syntax. I’m quite interested in this, and may take a look at this later.

 
Flag Post

Topic: Game Programming / Where to go from here?

Make missile command: http://www.missilecommand.com/arcade.php

 
Flag Post

Topic: Game Programming / Mcbain Games Tutorials!

Why are video tutorials so popular? I’ve always considered them far more inconvenient than text and screenshots. Much prefer being able to read at my own pace rather than having to constantly pause and rewind.

 
Flag Post

Topic: Game Programming / Graphics programming

I don’t know much about lighting, but here’s a nice tutorial on 2D pixel shaders: http://blog.josack.com/2011/07/my-first-2d-pixel-shaders-part-1.html

Not sure if that’s really what you’re looking for.

 
Flag Post

Topic: Game Design / Game Design Tips

it’s not as pervasive as you may think. For my last 5 projects, I’ve had one that required Adobe Flash, one that required FlexBuilder (Which I compiled with FlashDevelop), and three that were IDE-agnostic (I used FlashDevelop).

I second this, I think EndlessSporadic’s figures are about 5 years out of date. I’ve also never heard of a flash game company having their own in house tools. I would have thought that developing such a thing when there so many ready made alternatives already available would be a huge waste of resources.

So please. Don’t lead the newbies astray. At least give them a fair and objective evaluation of all the IDEs out there.

Don’t do this, just delete the “use flash” section entirely. Which IDE you use has absolutely nothing to do with game design.

 
Flag Post

Topic: Kongregate APIs / kong api docs.

Post which areas of the docs you think need improving, and what examples you’d like to see.

Personally, I’d like a better description of how to get the high score tab to show up. We always get lots of people in /programming asking why it doesn’t appear immediately after implementing the api.

 
Flag Post

Topic: Game Programming / [HELP] Call a function recursively after a delay/wait

private var _goldIncTimer:Timer = new Timer(0, 1);
_goldIncTimer.addEventListener(TimerEvent.TIMER_COMPLETE, goldIncrement);

private function goldIncrement(e:TimerEvent = null):void{

    //goldPool is a number representing gold yet to be added. Works perfectly
    if(goldPool>=1){ 
        totalGold = totalGold +1 
        goldPool = goldPool -1

        _goldIncTimer.delay = whatever;
        _goldIncTimer.start();
    }else{ }
}

It is an extra three lines I suppose. Just go with whatever works for you then.

 
Flag Post

Topic: Game Programming / [HELP] Call a function recursively after a delay/wait

Adobe would recommend using a Timer over setTimeout

 
Flag Post

Topic: Game Programming / Good Books for learning ActionScript 2?

Blech, python.

You encourage the use of AS2, and call python “blech”? Is this topsy turvy world? Could you at least try to expand your rebuttal a little, “blech” doesn’t address any of the points I raised.

I agree. The shootorials are amazing. I don’t know that we have any absolute-beginner level AS3 tutorials circulating around of that quality. We need some.

Well there’s the AS3 101 tutorials I just posted, they’re pretty good because they start off with the very basics like variables and functions, rather than diving straight into making a game like most actionscript guides. There’s also the Michael J Williams avoider tutorial which I’ve seen get a lot of praise and seems very well written.

 
Flag Post

Topic: Game Programming / Good Books for learning ActionScript 2?

But for many people, jumping right into OOP just doesn’t make sense … some people might be better off easing into it with AS2 first.

You don’t have to “jump right into OOP” with AS3, you can put everything into one big class (or on the timeline) if you want to just like you can with AS2. Follow the AS3 101 tutorials, they don’t mention OOP at all until lesson eight.

And even if AS3 was somehow OOP only, I still wouldn’t suggest learning AS2 first to “ease into it”. I’d recommend something like python, which at least is still being maintained, has modern tools and has an active community to help you.

 
Flag Post

Topic: Game Programming / [AS3] Accessing variables between classes

package 
{
	import flash.display.MovieClip;
	public class SomeOtherClass extends MovieClip
	{
		public function someOtherClass()
		{
                        //how to access
                        var instance:someClass = new someClass();
                        trace(instance.coolVar);
		}
         }
}

Try reading the “Understanding classes” articles on this page: http://www.untoldentertainment.com/blog/flash-and-actionscript-911/

 
Flag Post

Topic: Game Programming / I can't upload my games!

Originally posted by luthimir:

.exe files are supported on several other sites, google can probably help you out. YoYoGames and GameJolt are the first two that come to mind.

I think YoYo games may be GameMaker games only, I’d recommend GameJolt though.

 
Flag Post

Topic: Game Programming / [SOLVED] AS3 - getDefinitionByName

Sure you could create a lookup table like what nojkimserious has, but that’s uglier imo.

If you need to have a reference somewhere to use getDefinitionByName anyway, why not just use a look up table?

 
Flag Post

Topic: Game Programming / [SOLVED] AS3 - getDefinitionByName

I’d just use an object:

private const levels:Object = {"level0":Level00, "level1":Level01, "level2":Level02};

public function Main():void
{
    var level:Level = new levels["level0"]();
}

Seems the cleanest way I think.

Originally posted by DPbrad:

In these sort of situations, its best to just have a function inside the class (A static function) and call it somewhere (Even if its blank).

This will make sure it is compiled into the project .swf

I don’t think that’s necessary at all. Just referencing the class should be enough, no need to access any methods or properties.

 
Flag Post

Topic: Game Programming / Help for a newbie

Try redownloading the standalone debug player: http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe

 
Flag Post

Topic: Game Programming / Tower defense win/lose screen issue

The error message is pretty descriptive; you’re trying to convert a Shape object to a MovieClip object, which won’t work. You’ll have to post your destroyLevel function, and any related code, if you need us to tell you where you’re going wrong specifically.

 
Flag Post

Topic: Game Programming / I have a Flash game. How do I publish to Android?

What IDE are you using?

Flash CS5: There’s a free extension that’s pretty easy to use.
FlashDevelop: The latest version has an Android template that will handle packaging for you.
Flash CS4 or lower: Easiest way is probably to download a free trial of CS5. If not possible, I think you should be able to use the flex sdk to package it. Simplest way to do that is likely to download FlashDevelop, create a new Android AIR project, embed your .swf, export as .apk.

 
Flag Post

Topic: Game Programming / Another Beginner Question: Level Select

but i can’t seem to figure out how to get it to remember that you’ve completed levels 1, 2 and 3 if you beat 3 and replay 1, for example.

Do you mean something like this?

private function levelFinished():void
{
    if (currentLevel > SaveFile.levelsCompleted)
        SaveFile.levelsCompleted = currentLevel;

    nextLevel();
}
 
Flag Post

Topic: Game Programming / My First-Game-Ever is done! Play it :D

Originally posted by qwerber:

What makes you think my copy is actually fake tho? What if they had the liscence and are just selling at low price?

As a general rule, if it’s from China it’s fake. What did you actually receive from the website? An unlabeled DVD and instructions to make sure you install it with your internet connection turned off?

 
Flag Post

Topic: Game Programming / GiTD [#20] Voting (Also 72 hours!)

Originally posted by GamerFefan:
Originally posted by GameBuilder15:
Originally posted by CuriousGaming:

Thanks everyone. I nearly fell off my chair when I saw my game on the front page.

Yeah, congrats, you’re so lucky. :D

It’s not luck, it’s skill.

Not wanting to sound harsh/jealous, but I think there was a certain amount of luck involved. Nothing in the game looks like it required high levels of skill.

 
Flag Post

Topic: Game Programming / Question regarding connecting to Kongregate services API

It might be helpful if you posted the full error message. It should say something like “cannot convert * to *”.

 
Flag Post

Topic: Game Programming / Question regarding connecting to Kongregate services API

You call getApiPath(), but your function is actually named getKongregateApiPath(), is this a mistake? Error #1034 implies that getApiPath() isn’t returning a string for some reason, try adding a textfield or a try catch statement so you can see what it’s returning when it runs on kongregate.

 
Flag Post

Topic: Game Programming / Can anyone sell me on this "FlashDevelop" thing?

I don’t have a Project panel :( Where do you find it?

By default it’s the panel on the right of your screen:

If it’s not there for some reason, just go to View→Project Manager

 
Flag Post

Topic: Game Programming / Shootorials extended?

I heard rumours 2 or 3 years ago when the shootorials were first released that more were being planned, but it looks like nothing ever came of it. They’re pretty outdated now, so they’d probably need a complete overhaul rather than just an extension.