Recent posts by player_03 on Kongregate

Flag Post

Topic: Game Programming / News: Firefox Blocking Flash Plugins

Originally posted by revenant__:

Like they can kill flash plugin but make a compiler of as3 to html5.

They’ve thought of that.

Originally by Joshua Granick:

Flash is Not Flash Player

To many users, “Flash” still is a browser plugin, but for designers, developers and creative studios, Flash has always been a rich animation/layout tool, as well as (for us ActionScript developers) a fast development workflow. The method of delivery has changed over time, but our demand for tools has not changed.

With the Flash CC Custom Platform SDK, using Flash for animation, layout and design is going to remain viable. I applaud Adobe for making Flash Professional more useful to everyone, since we cannot use Flash Player for all target environments anymore.

Flag Post

Topic: Game Programming / News: Firefox Blocking Flash Plugins

Firefox gave me a couple notifications recently that Flash was blocked, but in both cases, this went away once I updated the plugin.

Flag Post

Topic: Lionheart Tactics: Heroes / Sniper or IFH ?

Take it from someone who has two legendary Snipers and a legendary Halberdier: the Sniper is useful in more situations. (I know you didn’t ask about Halberdiers, but they’re actually very similar to Icefang Huntresses. They have similar attack, health, and defense. They can hit multiple units in a line. They stun rather than freezing, but the result is similar.)

An Icefang Huntress works best at close range, but that leaves her open to retaliation. And she might be a tank, but no unit is strong enough to survive more than a few attacks in late-game levels. Range is far more important for survival.

I’m not saying the Huntress would be useless (among other things, her GB is amazing), but promote the Sniper first.

Flag Post

Topic: Game Programming / question about dragging.

Originally posted by Draco18s:

Because the mouse can move more than once per frame, you’d want the object to follow along so it doesn’t look like it gets left behind (imagine a very low frame rate, the effect is still noticeable at higher frame rates, but thinking about it from a “1 frame per second” standpoint gives an easy mental model).

Would Flash really redraw the object more than once a frame? MouseEvent doesn’t have an updateAfterEvent() function…

Flag Post

Topic: Realm Grinder / Upgrade Suggestion: Transcendent Autocasting

Edit: GeneralYouri beat me to it.

Originally posted by GeneralYouri:

Infact it meets all of your examples

Not quite. If you recovered enough mana for another Tax Collection before the timers ran out, it wouldn’t cast that Tax Collection.

But other than that it sounds great.

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.)