Recent posts by player_03 on Kongregate

Flag Post

Topic: Kongregate / [New Feature] Introducing Kongpanions!

Originally posted by Squideer:

Bones doesn’t suit it very well though.

It’s a staff in-joke.

Flag Post

Topic: Game Programming / Requirement to submit a Unity Beta Game ?

Originally posted by EndlessSporadic:

There is some way to establish a game as a beta. On the front page there is an entire category dedicated to beta games, so I would assume you can somehow, though I have never done it myself.

You have to contact the admins for that, and as far as I can tell, they only accept high-quality games that offer in-game purchases.

There’s a link hidden somewhere that will let others preview your game, but it’s easiest to go with EndlessSporadic’s suggestion of having friends and family play.

Flag Post

Topic: Game Programming / question about dragging.

Mouse events can fire more than once a frame, so there’s no clear winner. That said, both options would be quite fast, and I wouldn’t expect either one to cause any sort of lag.

Flag Post

Topic: Game Programming / I want to make a game...

There are some game development tools that try to hide the coding behind colorful drag-and-drop puzzle pieces.

However, the hard part of coding – algorithm design – is still there. When designing an algorithm, you start out with nothing but an idea of what you want the computer to do. As a programmer, your job is to translate this plain-English idea into the steps needed to accomplish it. (Then you need to translate these steps into whatever programming language you’re using, but that’s easier once you get used to it.)

By way of example, let’s talk about one of my high school physics classes. I… didn’t always pay as much attention as I should have. When I got bored, I’d take out my calculator (because I didn’t have a smartphone), and I’d write simple programs on it.

In one class, the teacher was discussing acceleration, velocity, and position, so I got to thinking about those things. I decided to write a program simulating a ball moving around.

Acceleration is the change in velocity, and velocity is the change in position, and the screen is 2d, so I made six variables.
• Horizontal (x) acceleration
• Vertical (y) acceleration
• Horizontal (x) velocity
• Vertical (y) velocity
• X (position)
• Y (position)

I set horizontal and vertical acceleration based on the user’s input. Pressing left, for instance, set x acceleration to -1, and pressing down set y acceleration to +1 (because the y axis starts at the top of the screen, not the bottom).

Now that I had acceleration covered, I needed to move the ball. Since acceleration is the change in velocity over time, I added it every frame. (A frame is one unit of time, as you probably knew.)

velocityX = velocityX + accelerationX;
velocityY = velocityY + accelerationY;

Acceleration was never more than 1 or less than -1, but it added up over time. Next came velocity, which is very similar:

x = x + velocityX;
y = y + velocityY;

Then I wanted to make the ball bounce off the edges of the screen, because nothing in the above code stops it from leaving and falling forever. I did this by checking the x and y coordinates. If either coordinate was out of bounds, I forcibly positioned the ball back within bounds, and reversed its velocity:

if(x < 0) {
	x = 0;
	velocityX = -velocityX;

(There was similar code for the other three edges.)

After that, I decided I wanted the ball to slow down a little with each bounce, because otherwise it could get pretty insane:

if(x < 0) {
	x = 0;
	velocityX = -velocityX * 0.9;

I undid this change in the end, because I decided I liked the insane version better. In a real game, I would have kept it.

If you want to make games, you’ll have to get good at that sort of thing, and in fact you’ll have to solve much harder problems. There’s no programming language that saves you from this, nor will things like Stencyl.

The trick is to practice making algorithms until you start to enjoy it. It really doesn’t matter what language you practice in.

Flag Post

Topic: Game Programming / OpenFL coming to game consoles

Originally posted by qwerber:

There are no stage3d implementations for most(all?) of the other openfl targets.


Flag Post

Topic: Kongregate / Any way to stop devs spamming my inbox?

Go through this list and click the grey “block” link next to the name of each game.

Careful: once you confirm the block, there’s no undo.

Flag Post

Topic: Kongregate / Conditions for joining Kongregate...

Originally posted by Holy2334:

I don’t see why it has to be as quick and smooth as possible for something that most people go through is a one time deal.

Not from the perspective of someone who regularly tries out new sites. Some of those people might leave if the process takes too long.

Flag Post

Topic: Game Programming / Unity or Flash

Originally posted by Llinl:

Or maybe there are other options I have not considered.

How about OpenFL? It’s a lot like Flash development, only you aren’t limited to Flash.

Flag Post

Topic: Game Programming / HTML5- How to remove scrollbars?

It could also be that the old version was cached, and you weren’t even seeing the new one.

To force your browser to load the new one, add “?1” to the game’s url. (Then that version will be cached, so for your next update, change it to “?2”.)

Flag Post

Topic: Game Programming / Unity C# API Tutorials?

Originally posted by HouseHero:

I don’t think so that ads are against kongregate’s terms of use because games like :
LEARN TO FLY IDLE are using it.

Are you talking about the video ads that sometimes show up before each game? Because those aren’t part of the game. They’re added by Kongregate.

Flag Post

Topic: Game Programming / Huge Numbers

One thing to keep in mind: you don’t need perfect precision. Adventure Capitalist probably doesn’t store all 200 digits in your 10^200 score; it just stores enough digits that you can’t tell the difference.

This strategy requires only two values: a double for your current score, and an integer for your current exponent. When your cash gets too big, divide it by 10, and add one to the exponent. (When displaying these values, round to three decimal digits so that players won’t notice you’re using a floating-point value.)

Flag Post

Topic: Game Programming / Can not delete SharedObject.. Game wont stop using old save files!

You’re using Flash’s SharedObject class, right? Because I can’t find anything in Starling that has anything to do with saving.

Assuming that’s the case, check here for more possible file locations. (Including the PPAPI section, I count three possible locations on Windows.)

Originally posted by EndlessSporadic:

I’ve never heard of the Stirling Engine (which is what I assume the name of the engine is according to a Google search).

Flag Post

Topic: Game Programming / [AS3] IDLE Game - Offline aktiv

Originally posted by Yunix93:

Well, then i just need to figure out how to ask for the system time…

new Date();

Flag Post

Topic: Game Programming / 3D Five Nights At Freddy's In Unity

Originally posted by Draco18s:

But what if the apostrophe was to make it possessive, not plural? Then the only problem is failing to pluralize. What’s the death toll in that case?

Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by EndlessSporadic:

To my knowledge they are no longer going to produce new “Adobe Flash” products and will no longer include it in their creative suites.

You’re going to have to cite a source. The link I posted makes it look like Flash Pro is still going strong.

Unless you’re talking about how Creative Suite was discontinued in favor of Creative Cloud, or something…

Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by EndlessSporadic:
(I know for a fact that CS6 is their last Flash iteration)


Flag Post

Topic: Kongregate / Why are kongpanions so useless?

Originally posted by mendelde:

Rychip, what are you referring to with “Run 3” and “Run 7”?

Rychip thinks I’m going to keep making Run sequels forever.

Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by Draco18s:

Until I can hover over a function name and see the comment applied to it, then ctrl-click to jump to the object definition, with full support for my own classes, then the IDE is terrible.

FlashDevelop can do that for both variables and functions, though it uses a hotkey (F4 by default) rather than ctrl+click. Also, the comment has to be Javadoc-style.

Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Originally posted by Drakim:

OpenFL will likely be powered by OpenGL eventually.

It already uses OpenGL for rendering on certain targets. Are you saying it’ll use WebGL for the HTML5 target?

Flag Post

Topic: Kongregate / Kongregate: Advertising tons of pay2win MMOS on the Recommended Games

I’ve heard that recommendations are chosen based on which games you’ve played, not which games you rated highly. (Even if that was true, I have no idea if it’s still the case.)

Flag Post

Topic: Kongregate / / ESCAPE \ Mobile has badges, and also costs money

Originally posted by RaptorKris:

Sure, only 1 dollar. Now we can watch all the other devs get the same idea and before we know it, Kongregate will be full of paid games.

Slippery slope arguments aren't very convincing when you're three years late to the party. (Not that they're convincing normally...)

Here are some statistics:

  Year  |  Number of paid games on Kongregate
  2012  |                                   1
  2013  |                                   1
  2014  |                                   1
  2015  |                                   1

The trend looks pretty clear to me, but if you want to do rigorous statistical analysis, I'll be happy to provide a spreadsheet version.

Flag Post

Topic: Game Programming / JavaScript Good OR Not Good

Javascript vs. ActionScript (aka HTML5 vs. Flash) is largely irrelevant. You can make a good or bad game with either one.

Here are some decent games made with Javascript, and here is one that I particularly like. For some reason, the latter isn’t included on the list, which suggests there are other HTML5 games that aren’t included either.

Flag Post

Topic: Kongregate / So now that kong has given badges to a game u have to pay for...

Originally posted by Mafefe_Classic:

menu simulators

I don’t think I’ve heard of that genre. Is it new?

Flag Post

Topic: Kongregate / Moving flash saves

Chrome doesn’t always follow the normal naming rules. Sometimes it creates a random folder and sticks the save file in there. In this case, the file and the folder will have a totally meaningless name, but if you open up the file in a hex editor, there will be a path to the folder it was supposed to go in.

The Dropbox thing is clever, but it’s probably better to transfer your files by hand.

Flag Post

Topic: Kongregate / Enough with the idle "games" bullcrap

Originally posted by Holy2334:

Rychip is right though, if you want to kill a trend you need to make another monster to takes its place. The only thing that I fear though is that once said game is created we will eventually get another thread complaining about how kongregate is flooded with “insert game gene here.” I guess that’s life I guess.

Perhaps not. Tower defense was a fad before it became a staple, and it didn’t get this many complaints.

As much as I enjoy some idle games, I can understand why some say they “aren’t games.” I wouldn’t be surprised if the next craze gets a more positive response.