Recent posts by Pimgd on Kongregate

Subscribe to Recent posts by Pimgd on Kongregate

avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / AS3 or AS2

Originally posted by saybox:

Start writing tutorials that cover things as a new programmer wants to approach them and you’ll see more people wanting to switch to AS3.

What about people switching from AS2 to AS3…
Is there a way to write AS2 code in such a manner that it will work in AS3? It’s far easier to switch languages if conversion isn’t as hard.
Of course, anything relying on flash is mostly dead, but what about data structures and manipulation on that data structure? (I haven’t programmed in either of those in a while…)

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Anti-Idle: The Game / Suggestions!

I’ld like Tukkun to use http://pnggauntlet.com/ if he uses .PNG images in-game. This tool compresses them by 10-15% and should reduce filesize of both his development directory as the game.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Speed question - float vs fixed-point/int arithmetic

Originally posted by truefire:

Take a look at http://www.unrealengine.com/files/downloads/UT3_Sanctuary_Flash_05.png screenie. That’s in flash.

Fixed?
EDIT: Fixed.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / accessing functions of another .as from another .as file

I wonder.
It doesn’t seem so though, I’ld say Skyboy’s version would be faster…
I mean, in terms of logic, you would skip all the crap and directly move on with continue (one single goto or jump) whereas the !monster.isShadow would have you invert a boolean and THEN neglect that if statement (double jump, once for if statement and once for for loop).
But I could be wrong.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / accessing functions of another .as from another .as file

Here’s the thing.
We (or atleast, I do) do enjoy a good puzzle – some programming related problem to occupy us for, say, 5 to 10 minutes.
You are going to need more help later on. I can tell, because you’re having issues with this, AND you posted a new topic just a while ago.
Most of us here, that is, the regulars, have programmed way larger things than you have. We’re talking about projects of 50k lines, easily. And otherwise they did multiple smaller projects.
Now, each of your “hacks” here, adds complexity. The normal solution does so too, but only as a feature: “This monster cannot be hit when he is in shadow mode.” You turned it into “This monster can not be hit when he is in shadow mode because his hitbox moves when he is in shadow mode”, which is more complex.
Combine it with some horrible form of indentation or forum formatting, and the problem looks too complex – we’d ignore it.
If you want help, you’ll have to help us help you.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Stop hitTesting yourself, Stop hitTesting yourself...

Use this

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / accessing functions of another .as from another .as file

Those are not fixes, those are “hacks”.

Please take proper care of your code, thank you.
(I have to work on a 3D-engine for school where the assignment is to improve something about it. The improved 3D-engine is then reused for next semester. Some parts of this thing have been murdered so badly I want to gouge my eyes out – specifically, Lua keeps spouting errors in my face because someone felt the engine needed scripting.)

You should implement Draco’s suggestion.
There’s a reason for why his solution is better than yours – for instance, try multiplying, duplicating or stretching things. Which version is more likely to be bug-free when it’s applied on a larger scale (what would happen if your game’s stage was 2000 px wide?)

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: General Gaming / The Elder Scrolls V: Skyrim Pics

This gets me everytime, but…

“Console not available on console”

Wait, what?

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Can making a game with AS2 be justified?

… Question…

Can you make non-displaylist related, memory leaks in AS2
which are not things like forgetting to splice arrays?

Can you in AS3?

I’m finding increasingly more leaky games these days. Maybe AS3 has greater leak potential?

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: General Gaming / HOLY SHIT MURLOC RPG 2 HAS BEEN RELEASED

The game has been fixed in most areas – the memory leak is (I think) still there, but it’s much smaller.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: General Gaming / HOLY SHIT MURLOC RPG 2 HAS BEEN RELEASED

For the collectors out there:
I’m working on an itemlist for this game…

Here’s the current list so far.
http://pastebin.com/ePbaEtXS
141 of 149 items.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Can making a game with AS2 be justified?

Today I used AS2 to make a silly little graph, in 5 minutes.
I also abused it from time to time to do some complex calculations (Counting total damage done to a boss by adding all the numbers of a mile long string I typed together).
AS2, just as any other language, can be used to do small things. And none is going to blame you for it; It’s because you’re making something small that it doesn’t matter.

Once you get to the larger projects you’ll have to be more careful about your tool. But when dealing with SMALL problems, you need to use not the tool best suited, but the tool closest to your hand. (Who goes to the shop to buy a dishwasher to do one dirty cup when all you need is some water and some good old brushing?)

For a comparison:
Would you use a project management method or development method such as RUP, Agile/scrum when you’re dealing with a 2 hour task?

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Under judgement

rating : 2.24324
And there we have it.
To view: http://www.kongregate.com/games/azuana/azuana-dominoes/metrics.json

Also, I’ld suggest writing a versus CPU method, multiplayer games are hard to play once the player count starts dropping.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

I have no idea how Error 1069 produces a “Error #1010”.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Solved: Yo Senekis or other programmer : )

I don’t see the timers variable being initialized anywhere.
I also see that there’s some formatting issues with the code – You’ve got multiple statements on one line, and I’m not entirely sure you’re even closing certain functions properly.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

Could you show all the save/load related code? Perhaps there’s a typo somewhere.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

Last time I checked, don’t you need to access sharedobjects through SharedObject.data? Try adding the Data keyword between “SaveData” and “PouchItemsQuantity”. I’ld also suggest creating the array before accessing it.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

SaveData.PouchItemsQuantity[47] = 1;
trace(SaveData.PouchItemsQuantity[47]);

If this still gives errors, can we go to a larger scope?
What’s the datatype of SaveData and SaveData.PouchItemsQuantity?
How are you using the code? (Where and when)

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Solved: Yo Senekis or other programmer : )

For the sanity of everyone involved, could you keep the front post up to date with the latest, current code?
If everything is in one place I don’t mind reading something that’s hard to read, but if I have to go searching for snippets everywhere I think I’m gonna miss sections.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

… Why are you tracing it, then?
Just use 2 lines instead of one.

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / ReferenceError: Error #1069:

… What are you trying to do? This looks like a failed attempt at equals (==)

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Design / RPG Scaling difficulty Issue

Instead of scaling to the level of the player, scale to the average of the player and the area level.
Plot-explanation: “The forces of Evil/Darkness” grow as time passes (Player Growth).

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Little Cave Hero / poeple who have chests in thier town for helping others

yawgmoth, smilingeyes, and me

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: General Gaming / Yugioh 5D's World Championship 2011: Over the Nexus

I thought most of the early GX games used normal rules.
Well, you could argue that earning DP to buy card packs is “different”, but that’s outside the card game itself.

Oh, and there were like 3 PC Yugioh games (each featured an opponent and if you installed multiple games [like 1 and 3] you could use the cards between both games).

 
avatar for Pimgd Pimgd 1654 posts
Flag Post

Topic: Game Programming / Syntax Highlighting

Oh wow. I almost feel like taking screenshots of code instead of copy pasting it – because it looks more nice.