Recent posts by WarKry on Kongregate

Flag Post

Topic: Game Programming / FD ui components

You could also try MinimalComps

It doesn’t allow much customization, but it’s lightweight and is fairly easy to use.

 
Flag Post

Topic: Game Programming / Program like TexturePacker

ShoeBox is another option. It’s a small collection of tools that includes a sprite packer and a sprite extractor.

 
Flag Post

Topic: Game Programming / Introduction to Starling

Originally posted by qwerber:

no blitting? no use for me as of now.

Why is a lack of blitting a deal-breaker for you, if you don’t mind my asking?

 
Flag Post

Topic: Game Design / Is this legal?

Or you could just do what most people seem to; simply call it “The Code” and assume that anyone who would get the reference doesn’t need it explained to them and anyone who wouldn’t get it won’t find it funny anyway.

 
Flag Post

Topic: Game Programming / [solved] AS3: How to make a preloader for project compiled from FDT (Flash Builder)?

I’ve never used FDT, but this works in FlashDevelop so I’d assume it should work for you. The comments on that article suggest that you might need to add ‘-frame start Main’ to your compiler options to get it to work.

 
Flag Post

Topic: Game Programming / What FPS to you publish your games at?

The “How much is enough?” argument over frame rate in video games has been going on for a long time. Anyone who has ever played a competitive FPS can tell you that a consistently high frame rate is almost as important as a consistently low ping. The smoother the overall experience, the better.

The idea that the human eye can only distinguish up to 80 frames per second is a little bit misleading, considering that the human eye doesn’t have a frame rate at all but instead is constantly processing incoming light. While I may not be able to distinguish individual frames at higher than 80 frames per second, I can certainly tell the difference between 80 and 200 (200 fps being perceptibly smoother than 80 fps.)

100fps.com site has some interesting points on the topic (the bit about Air Force pilots being able to identify a picture of a plane that was flashed for only 1/200th of a second is particularly relevant.)

For video games though, the general public doesn’t seem to care about the difference between 30 fps and 60 fps (although that may change as 120hz televisions become more common.) Insomniac Games found that out not too long ago and flash gamers seem to have an even higher tolerance for low frame rates than console gamers do. I wouldn’t recommend going below 30 fps, though.

All of that said, my personal opinion is that a lower, more consistent frame rate is preferable to a higher but less consistent frame rate. Even if the higher frame rate never drops down to the level of the lower. And it is much easier to achieve a steady 30fps than a steady 60 in a flash game.

 
Flag Post

Topic: Game Programming / Stencyl - Flash Game Creator

Originally posted by FlashBeast:

What do i use to open the program??? I downloaded the folder i was suppose to, then i double clicked the “StencylWorks” application in the root folder and it just opens up the stencyl website?(http://www.stencyl.net)

As stencyl already said earlier in this thread, you should probably go to the stencyl site and ask your question in their beta forum. You’d be more likely to get the help you need there.

 
Flag Post

Topic: Game Programming / Something noobish. alpha = 0.8 but trace outputs 0.796875. How's that?

0 to 255, I think and my guess would be that they store it like that because that is how it’s stored in 32-bit color. 8 bits each for red, green and blue and 8 bits for alpha.

 
Flag Post

Topic: Game Programming / Something noobish. alpha = 0.8 but trace outputs 0.796875. How's that?

It has to do with flash storing alpha as an integer internally.

This page has more info and a workaround that should help you.

 
Flag Post

Topic: Game Programming / hittest troubles (as2)

Originally posted by player_03:
It is simple, and it will work up to a point, but it will lead to strange behavior (for example, the player not hitting ceilings until he/she’s inside it). If you decide to use this method of doing it, be sure to also check _root.ground.hitTest(player.x, player.y - player.height, true), so that the player’s head will hit ceilings. (While you’re at it, you should test a point on each side of the player, so that he/she can’t enter walls.)


All very true, but if you’re going to go that far then you might be better off leaving the hitTest behind entirely and going for something a little bit more robust. These tutorials by tonypa would be a good place to start.

 
Flag Post

Topic: Game Programming / hittest troubles (as2)

You also seem to be using the hitTest backwards. You want to compare the ground movieClip with a point on the player, not the other way around.

I’d suggest setting the registration point on the player to be down between it’s feet, then hitTest the ground against the player’s x and y with shapeFlag set to true. That’s probably the simplest way to solve your problem.

 
Flag Post

Topic: Game Programming / Stencyl - Flash Game Creator

Originally posted by gamebuilder15:

I think you’re right. But I kind of hope it just blows over, overwise I’ll be out of a job unless I use it :P

That’s like saying that, in order to make good PC games, you would need to use GameMaker or Unity or any other game development software. Just like GameMaker, etc…, Stencyl is a tool. It’s what you do with the tool that matters.

When it comes right down to it, the Flash authoring tool was never really meant for making games. Obviously it can be used for that, but there have always been hoops that you need to jump through to use it to makes a game. If Stencyl opens game development up to more people, then how is that a bad thing? Sure you might get a slew of crap games, prototypes and experiments gone horribly wrong, but that’s not really any different from how things are now and the occasional gem that you find should more than make up for it.

 
Flag Post

Topic: Game Programming / What about Macromedia Flash 8

Why not use Flash 8 and FlashDevelop together?

You can use Flash 8 for all of the artwork and to create a library SWF and use FD for programming your game.

 
Flag Post

Topic: Game Programming / Quick Font question

The reason that I used fontFamily there instead of fontName was to allow me to refer to any version of that font by the same name and just change the f.bold and f.italic booleans to whatever I wanted without needing to change f.font.

I don’t know if that actually saved me any work, but it made more sense to me than creating a different fontName for every version of the font.

As far as I know, that is the point of using fontFamily instead of fontName.

As you can see from the example swf I linked in that post, my version does work. If you are having trouble with the font not changing, then I would guess that you either don’t have the font, or have it in the wrong folder.

 
Flag Post

Topic: Game Programming / Warning to Devs...

This is just anecdotal, but secureSWF also has a bit of a reputation of breaking some games. No particular reason for it, at least not one that the games’ developers seem to understand; it just doesn’t seem to like some games.

I’ve noticed a handful of threads over at flashgamelicence.com (where that FGL25 coupon comes from) complaining about it.

 
Flag Post

Topic: Game Programming / Normalization

Normalization is setting the magnitude of a vector to be exactly 1 without changing it’s direction.

This short tutorial covers the basics of what vectors are and how you can use them in game programming, including normalization. The code snippets are in C, but are simple enough to translate to AS without any issues.

 
Flag Post

Topic: Game Programming / Warning to Devs...

Originally posted by Pimgd:

Yes but if you add this to your game, and you aim your rockets/arrows/missles/whatever at the site owners, it wouldn’t make much sense on, say, newgrounds.

Originally posted by Phoenix00017:

However, Pimgd makes an excellent point – while the site we’re looking at in this example is a scraper that pulls games automatically, there are other sites that are user-upload controlled and that don’t deserve your scorn.

I think I misunderstood what you meant, Pimgd. I guess I was, rather naively, assuming that someone that had an issue with a particular site (andrew623’s for example) would implement a blacklist in their site lock code to run along side the whitelist that is more common. Very naive…

I thank you and Phoenix00017 for clearing up my misconception.

 
Flag Post

Topic: Game Programming / Warning to Devs...

In this case, I think we’re talking about someone extracting (automatically, I assume) the games directly from Kongregate and other sites like it. Presumably, it would be the owner of the site where the games end up being illegitimately hosted, or someone who works for them that would be doing this.

 
Flag Post

Topic: Game Programming / Warning to Devs...

Originally posted by Kinsman:

First off, it’s not an ad hominem to point out a question with rhetorical assumptions.

Haha, I was stretching a bit for the ad hominem; it was mostly a snarky response to the way you chose to sidestep. I tried to bring your attention back to my argument and you dismissed it by calling me “snippy and rhetorical.” Me, not my questions. The inference on my part was that you felt my argument wasn’t valid because of the tone I use, not because you had any response to the argument itself. As I said, a bit of a stretch, but not too far off the mark. The difference is in what is clearly stated and what is implied/inferred. So you’re right, not argumentum ad hominem.

Great link, though. It let’s you be snarky by proxy.

You know, I’ve been frank in my posts, multiple times, and I’ve explained myself fairly thoroughly. So I find myself taken aback that you’re now claiming I’m avoiding questions.

It’s kind of hard not to when you still haven’t answered my questions. All you’ve done here is say that you’ve explained yourself, which you have, to some extent. The problem is that when I questioned the specifics of your plan and your reasoning for targeting the player, rather than the site, you didn’t bother to elaborate beyond saying you were responsible for what the player does.

I feel that these are important questions to be asking before everyone and their little brother rigs their games to harass the very people that they want playing in the first place.

Others in this thread have asked the very same questions, so they are definitely relevant to the discussion; if only to explain why they aren’t.

And I can’t help but notice that you seem to consider “Why I think the player needs correction” and “Why I feel my plan is the best solution” is the same question.

I don’t recall suggesting that they are the same question. They are, however, clearly connected; the first is asking for your personal reasoning for implementing that plan and the second is calling in to question the validity of your plan itself.
Edit: Fixed the sentence order; first and second were reversed.

I think the problem is that I’m not so much arguing with your objections so much as arguing with your vague feeling of unease about the idea. I’ve heard you say “I think you’re being unfair to the player” more than once in this thread, and I’ve explained what I felt about that idea; just because you keep summoning up variations of the same theme, and I stop answering after a while, doesn’t mean I’m avoiding your questions.

My “vague feeling of unease” is not that you want to do any of this; I don’t really care what you choose to do with your games. It’s that you are recommending it to others here on Kongregate. Some of these people have more ideas than common sense at this point in their lives (just like everyone that hasn’t reached a certain level of maturity; not an insult, just a statement of fact). I choose to counter your stance because I see potential issues with it that I don’t like the thought of.

On top of all that, I don’t think the plan itself is going to be effective. Yes, that’s just my personal opinion, but I’ve already explained the flaws I see in your plan in previous posts.

It’s activism. When you have a street protest, you’re going to end up irritating the people in the city who don’t especially care about your issues and now have to take an alternate route to work; when you dump crates of tea into the water, you’re going to irritate all the merchants who spent perfectly good money on that tea.

That is an interesting way of looking at all of this. It does put you comment about being responsible for the people who play your games into perspective.

The funny thing about this whole discussion, is that I think andrew623 and those like him are kind of sleazy. Harvesting the work of others from a site that doesn’t allow in game ads (MochiAds being the exception,) and collecting money off of it without paying those who made the game… Yeah, kind of sleazy and I don’t personally mind if your actions cause his sites or others like them to fail.

But you are using the players in much the same way that he is. He is using them to leach money off an advertiser and you are using them to try and ruin his “business.”

If your long term goal is to kill sites like his, then you may succeed. I doubt it, but have no real evidence to argue that. If your long term goal is to have people experience the game that you have spent however much time and effort on, then you fail right up front. They can’t enjoy what you won’t let them play, and they won’t risk playing your games in the future if they recognize the name next to the link.

When you could simply inform the player that the game has been stolen and link them back to your site of choice, you instead choose to harass them in the hopes that it will affect his business. At that point it is no longer about having the player experience the game the way you want them to, and is instead about using that player, in a round about way, to try and punish the person that stole your game.

Your efforts here feel to me like you are trying to recruit people to your, in my opinion, flawed form of activism.
Edit: Fixed some grammatical wonky-ness.

An activist of the type you described, is willing to take hostility on themselves to get their message out. But you don’t seem to have a message. Not one that the player will ever understand.

What you’re suggesting is less like waving signs and shouting slogans, and more like slapping people in the face for walking down the wrong street. They don’t know why the hell you’re hitting them. They just know that next time they see you, it might be a good idea to cross the street.

 
Flag Post

Topic: Game Programming / Warning to Devs...

Originally posted by Kinsman:

How about instead, I wait until you stop being snippy and rhetorical, and ask honest questions about what I believe and want to accomplish?

Ad hominem aside, I don’t see the point in asking you those questions; you’ve been pretty clear about what you believe and want to accomplish. Instead, I asked you why you feel that is the best solution to the problem. You’ve avoided answering that question, so I keep asking it. If you have an answer you’d like to share, then I could stop bringing it up.

It seems a little bit silly to state your irritation with the owner of the site, then, instead of dealing with that problem directly, you propose passing your irritation on to the people that play your game on that site, hoping that they will blame the site owner for their irritation and never return.

All that I’m suggesting, is that a more direct approach to the problem might be both more effective and more appropriate.

Besides, being snippy and rhetorical is half the fun of having a pseudo debate on the internet.

My ex-wife tells me that I’m a smart-ass…

I can’t, in good conscience, disagree.

 
Flag Post

Topic: Game Programming / Warning to Devs...

Originally posted by Kinsman:

One of the dark secrets of being a game developer is that video games often cause unhappiness and frustration; we’re essentially adding trouble to people’s lives by giving them an artificial challenge, and asking them to pretend for a while that it matters for them to complete it.

But, the ultimate goal is to help and guide the player so that they can overcome that challenge, and feel better about it afterwards.

Figuring out how best to guide and manage the player’s expectations and next actions are a big part of what it means to be a good game designer.

Wow… I’m not entirely sure how to respond to that. You took a stance that was already leaning towards condescending, and did a rather magnificent job of reinforcing that impression.

If I’m understanding you correctly, you’re suggesting that it’s up to you to make sure that a person that plays one of your games is browsing the internet in a way that you consider appropriate. Does that sum it up, or am I off track there?

Also, I’m still waiting to hear why you think that the player is the one that needs correction.

Originally posted by Kinsman:

It might be a moot point in the end; Realwebsiteworth isn’t especially impressed with Andrew’s network. There’s not much activity there to base any sort of statistics on.

Fair enough, but I was assuming that you were talking about doing this across all sites other than the select few that you have posted a game on yourself. I suppose that would require a level of popularity that most flash developers never achieve to be statistically relevant; as you said, it might be a moot point.

 
Flag Post

Topic: Game Programming / Warning to Devs...

Kinsman, it is amazing to me that you can make so many valid, clearly well-thought-out points and yet still come to that same, rather condescending, conclusion: that the player somehow needs to be corrected, as if they were a misbehaving child or a naughty puppy.

The player has not caused you harm. In fact, they aren’t doing anything wrong at all. So why would you want to punish them?

Your goal is clearly to disrupt the site that has taken your game, but is it important enough to you that you would risk your own reputation as a developer to achieve it? Even when there are alternatives you could try first?

As I have said already in another post, if you don’t want your game to be played on that site, then prevent it from being played on that site. Several potential solutions to that problem have been proposed in this thread already as well as the sticky that Phoenix put up, so I won’t repeat them here.

If you are planning to do yourself what you have recommended that others here try, then I wish you luck. If you happen to use any flash tracking service in your game (mochibot for example), I would love to see the results of your actions. I don’t believe you will achieve any more than you would by blocking the site, but I’d be interested in any evidence you could provide to the contrary.

 
Flag Post

Topic: Game Programming / [AS2] moving diagonally problem

It seems to have become regular practice to use ‘Z’, ‘X’, and ‘C’ for your action keys. They don’t have as many conflicts with the arrow keys, apparently.

 
Flag Post

Topic: Game Programming / [AS2] moving diagonally problem

What you are describing is (most likely) not a problem with the code, but is a common problem with keyboards known as key jamming

There isn’t anything you can do about it other than buy a better keyboard, or pick a different key to use for fire.

The second option is probably more useful.

 
Flag Post

Topic: Game Programming / Warning to Devs...

While this is primarily in response to Kinsman’s post above mine, it applies anyone in this thread that wants to rig their game to grief people for playing it on the wrong site.

I honestly don’t understand why you are all convinced that being a jerk to a random person that has come across your game on some random site on the internet is the appropriate way to deal with said site using your game without permission.

There is no valid reason for punishing the player who is just trying to enjoy your game. It’s counter-productive. You want people to play your game. It’s why you put it on the internet in the first place.

Your argument that the player will blame the site for the game not working is only true if that is the only game that they’ve played on the site. To me, it seems very unlikely that they found that site by searching for specific games made by the average developer. It is much more likely that they came across the site by searching for “free games” and, in browsing the site for things to play, have tried many different games before they came upon your game.

If all of the other games worked just fine for them and they get to your game and it’s broken, who do you think they will blame for that? Hint: it’s not the site owner.

And if you’ve read all of that and still think that metaphorically kicking the player in the teeth is the right solution for you, I’ll finish by quoting Wheaton’s Law “Don’t be a dick.”

Words to live by.