Recent posts by AMD_Paulius_J on Kongregate

Flag Post

Topic: Game Programming / GiTD #28 t-shirt already arrived:)

Here it is! for everyone to see:

Well, although it is only L sized, it is still designed for fat people, i can’t wear it:] I would probably look like I was dressed with a sack:\ But all in all colors are pretty good, and I’m very happy with this souvenir.

 
Flag Post

Topic: Game Programming / GiTD [#31] Winners Announced!

1st. Feartehstickman
2nd. Saybox

//And don’t invert my vote, I noticed mixed entries too//

 
Flag Post

Topic: Game Programming / GiTD [#30] Winners Announced!

Originally posted by feartehstickman:

Yes, I garnered a vote from the Lure or Die guy. Hopefully it wasn’t just because he was too sick to think straight.
Get well with haste.

No it wasn’t a mistake, I really liked your game!

 
Flag Post

Topic: Game Programming / GiTD [#30] Winners Announced!

1st. place – Kewry – Crawling Through Weird Places

Kewry your game is superb! it is very engaging, and here we have a fine example of how much can a good music increase addiction to the game, I think I played it for more than half an hour, and got switched to cybernetic world so much, later I found out that I didn’t even realise that one person came to me to ask for something, and I didn’t even notice someone standing behind me:) but I got stuck in the last dungeon, I think it’s not finished yet.
For me, this game is a clear winner. By the way you should add credits to musician who composed this soundtrack.

2nd. place – feartehstickman – Escape the Dungeon

Sorry, can’t give any more feedback, I feel a “little” dizzy, because I caught some nasty virus (in real life) and to erase a reallife virus isn’t as easy as to do so for a virtual one:)

By the way, Senekis, I think I’m being ignorant and I’m not catching or I’m missing something about your game:)

 
Flag Post

Topic: Game Programming / FlashDevelop and Flash Professional

This is probably not what you are looking for, but may be useful too if you don’t want to have difficult time working with both Flash Professional and Flash Develop.

If your school’s computer has an external IP, set up a VPN connection, then connect from your home and use remote desktop connection to work on flash, if it doesn’t have external IP then you can use TeamViewer, but VPN + RDC works better. Plus if you have a VPN you can map a network drive and send/receive files easily.

I use VPN and remote desktops daily, and must say that it works very smooth (thanks to huge network development), sometimes I even forget that I’m working on remote desktop.

 
Flag Post

Topic: Game Programming / Flash animation problem

Originally posted by Draco18s:
Originally posted by AMD_Paulius_J:

I don’t see why would it be bad to use timeline code, if it is not a big project.

Some people seem to think otherwise

Yes I read that thread, but didn’t participate because my opinion differs from majority. If it is a small project I believe that procedural programming is the way to go, especially when one is learning things.

But yeah, that’s only a personal opinion, it may be wrong.

 
Flag Post

Topic: Game Programming / Flash animation problem

I don’t see why would it be bad to use timeline code, if it is not a big project.

And to solve your problem, i couldn’t read your code but maybe you have a stop() statement at the end of your object, and maybe your animation is playing in the background and when you addChild it is at the last frame, try adding stop(); in the first frame of your object, and exactly after you add it to stage use yourObjectName.play();

 
Flag Post

Topic: Game Programming / GiTD [#29] Voting

Originally posted by Gengii:


AMD_Paulius_J several big names made both of those games as well as Wasteland, and the Fallout series. Hope you’re not developing anything at the moment. That game has ton’s of content! Enjoy~

Well, when one knows how to manage time. games, development and work are easily compatible:)

 
Flag Post

Topic: Game Programming / GiTD [#29] Voting

AMD_Paulius_J, Yes! I’ve played that game and the sequel, I still have a screenshot of the man holding the chain. Beautiful stuff. I like the dialog system in that game, not sure if it’s been an influence however. I’d like to recommend back Planescape:Torment. Roll a character with high INT and WIS. I swear it’s changed the way I think and who I am.

Oh my, how didn’t I know about such a game, it looks very similar to Icewind Dale, thanks for sharing.

 
Flag Post

Topic: Game Programming / GiTD [#29] Voting

BobJanova: Well, strategy and rpg games are my favorites, I liked this game very much! Although I’m not noob at strategy it wasn’t that easy, if I build lights nearby bases, enemy would cut off power supply and still destroy me, so I must build lights to protect power supply lines too. It was interesting, I have just a very few minor reports. Selected tile should have some indication that it is selected, and of course after if player is going back to menu you should reset time skipping speed, oh and I want a better “close menu” button, something that’s easier to hit.

Gengii: Somehow your game reminded me one of the most mythical game I have ever had “The longest journey” (If you haven’t played it, I greatly recommend it)

Hmm perhaps, because of all these philosophical concepts, I must say, I really really like these themes. But there were many bugs, like getting stuck in market and then having to reload the page.

feartehstickman: Ahh, I played your first version and in it animals were spawning automatically, and this time I killed this only 1 animal, and after this event my people were doomed to starve:) Well, yes this game needs more strategic elements, maybe you should make trees grow slower so that player should measure how many can he cut.

Aceeri: Your game needs explanation about what is exact benefit from upgrading mines, and it also needs timer to know when the night is coming. And a huge suggestion:
Do not make instructions like that, a wall of text is the worst scenario for instructions. You need to work on this game, and you can make it pretty good.

I give 1st place to BobJanova, it is a clear winner.
2nd. place goes to Gengii, feartehstickman’s game was very close 2nd place too, but the fact that Gengii’s game had a storyline made it easier for me to decide.

 
Flag Post

Topic: Game Programming / I'm looking for a better way to parse XML data

Hmm, I will try that, thanks.

 
Flag Post

Topic: Game Programming / I'm looking for a better way to parse XML data

Originally posted by Kewry:

have you taken a look at JSON? it could ease up the trouble seeing as data comes in arrays

Well yes, I read a lot about JSON it’s a lot better than XML, but I’m not good enough yet to implement JSON, so this time I’m going with XML.

 
Flag Post

Topic: Game Programming / I'm looking for a better way to parse XML data

Hmm, maybe that’s why I couldn’t find any proper documentation on this, all articles are for web developers, and they don’t have tileMaps:)

 
Flag Post

Topic: Game Programming / I'm looking for a better way to parse XML data

Right now I have an XML tile map in this format

<tile>b1</tile>
<tile>b1</tile>
<tile>t2</tile>
<tile>t2</tile>
<tile>t2</tile>
<tile>t2</tile>

Well it’s only a part of it, it actually is more than 1000 rows. And I parse it like this:

var mapTiles:XMLList = new XMLList();
var xml:XML;

xml = new XML(xmlLoader.data);
mapTiles = xml.tile.children();

for(var a:int = 0; a < mapTiles.length(); a++)
	{
		testingArray[a] = mapTiles.text()[a]; //Looping through array and adding values
	}

But well, I believe it is not a very effective method, the question is:

if I had an XML file like this:

<tile>b1, b1, t2, t2, t2, t2, t2, t2</tile>

How would i parse it? How could I insert into array each element separated by “,”?

 
Flag Post

Topic: Game Programming / GiTD [#29] Entries and Discussion (started!)

Originally posted by ST3ALTH15:

Hey everybody, I made a new banner for this contest and UG said I should post here to see whether you guys would be fine with substituting it for the old one until the end of time(or whenever somebody makes another one).

In my opinion old logo is awesome, and it should not be replaced, because it’s not just a banner it actually reflects game contest (because there is a castle and bricks). And there is 30% of blue color which is my favorite, so I don’t think it should be replaced ever.

That’s just a personal opinion.

 
Flag Post

Topic: Game Programming / GiTD [#29] Entries and Discussion (started!)

I kinda liked it, new people keep appearing, but balance still exists :)

 
Flag Post

Topic: Game Programming / displayList enigma

Originally posted by NineFiveThree:

A get function would calculate that value and return it, no matter if you cache the values or not, it’s going to come in handy, because in an editor, it’s very likely that you have to recalculate that value again.

Hmm, now that sounds like a good point, but I’m not familiar with get/set functions so I will stick with an old methods, at least for this map editor. I think current method should be ok, because it’s only 1 additional variable for each tile.

 
Flag Post

Topic: Game Programming / displayList enigma

Creating a map editor takes time but it’s definitely worth it, now creating a level is a pleasure. I created levels manually before, by specifying coordinates:)

 
Flag Post

Topic: Game Programming / displayList enigma

No, that code won’t work at all.
You access tile before you declare it. It would also not make this a property which you could assign to sortOn.

As I said, write a get function.

Hmm, but I’m not so sure how to use a get function, maybe to return a bottom y coordinate, but I can already access that, because tile is being pushed into array from the same function so it’s easier to set a new var with bottom coordinate.

Well i updated everything, and it seems to be working, thank you all for suggestions it really helped to get the sorting idea.

Oh. So they’re objects in the array. What you had before would probably work then, just make sure you put var tile above var coord.
I don’t know how you’d go about sorting it though, Refer to above post.

I’m sorting on yPos:int, actually it’s not so complicated as it looked at the beginning.


//First get a needed coordinate

var coord:int = tile.y + tile.height;

// Then push tile into array and add yPos property

tileArray.push({object:tile, yPos:coord});

// And then sort by yPos

tileArray.sortOn("yPos", Array.NUMERIC);

That’s it, here is an updated version.

 
Flag Post

Topic: Game Programming / displayList enigma

I think that’s what you’re trying to do???
You will get an array like:
[[tile1,2],[tile2,4],[tile3,7],[tile4,10]];
So, when you’re looping through, tileArray[i]0 will be the tile, and tileArray[i]1 will be the coord value.

Yes it will be something like that, but I am giving additional names, so tileArray[O].tile will be the actual object, and tileArray[O].coord will be tile’s bottom y position, I will sort everything by bottom y position and then update, it should work.

EDIT: I could not write zero inside [] it was giving me this 0

 
Flag Post

Topic: Game Programming / displayList enigma

Originally posted by NineFiveThree:

The lower edge is the thing you’re interested in?
Write a getter that exposes the “bottom” porperty of the rectangle as a property of the element, sortOn that.

Yes that’s what I’m thinking about, each time I add a tile to array I will add additional parameter “coord” which will be var coord:int = object.y + object.height.

But would this be correct?:


var coord:int = tile.y + tile.height;
var tile:Tile1 = new Tile1();

tileArray.push({object:tile, yPos:coord});

Then I will sort array on “yPos” parameter, and then will skim through all tiles and set their indexes, this may work, but is my code above to add object and to set his “yPos” parameter correct? please someone tell me.

 
Flag Post

Topic: Game Programming / displayList enigma

Originally posted by BrainStormer:

Put every tile into some array and then sort it by the ‘y’ property.

tilesArray.sortOn("y", Array.NUMERIC);
for each(var tile:Tile in tilesArray) {
  addChild(tile);
}

Something like this. Not the ‘techy’ way, but convenient. Does this help?

Unfortunately in this scenario sorting only on y coordinate is not good enough, because there are high objects, so even if they have a lower y coordinate, their bottom may have a bigger y coordinate than a smaller object’s bottom y.

But your example gave me an idea. But how could I add additional parameter to each tile that I push into array, for example:


//if I have an int variable

var coord:int = 5;
var tile:MovieClip;

// How would I add this var to be additional parrameter in array, connected to current object

tileArray.push(tile // And here somehow add aditional parameter, named "coordinate" with coord value, so I could sort array by "coordinate"

How could I do this?

 
Flag Post

Topic: Game Programming / displayList enigma

I can’t find a solution for this displayList problem, for a whole week already :O

So let’s put many minds on it.

I decided to make a tileMap editor with displayList implemented, everything seems to be working well, except for one thing.

After each tile is placed I update display list with this function:

function updateIndex():void
{
	
// This will get the last placed tile

	if(realTilesContainer.numChildren > 0) var tempTile1:DisplayObject = realTilesContainer.getChildAt(realTilesContainer.numChildren - 1);

//Then I loop through all tileContainer items
	
		for(var a:int = 0; a < realTilesContainer.numChildren; a++)
		{

				var tempTile2:DisplayObject = realTilesContainer.getChildAt(a);


// This is the logic of changing tile indexes			

					if(tempTile1.y + tempTile1.height < tempTile2.y + tempTile2.height && realTilesContainer.getChildIndex(tempTile1) > realTilesContainer.getChildIndex(tempTile2) && tempTile1.hitTestObject(tempTile2))
					{

// If currently placed tile's lower bottom is higher than any nearby tile lower 
//bottom I set current tile's index to be lower than tempTile2 index

						realTilesContainer.setChildIndex(tempTile1, realTilesContainer.getChildIndex(tempTile2));
					}

		}


}

But here is one thing that doesn’t work:

If I place 1 tile, then place 2nd tile above and if I place 3rd tile in the middle between these two, the upper tile will have a higher index, 1st. example:

But I want to make it like this, 2nd. example:

You can try it here

There must be some way to achieve this, if you have any suggestions, please write them here, I’m out of ideas.

There must be some other way to update indexes

 
Flag Post

Topic: Game Programming / AS3 HitTestObject Issue w/ Array

Your hitTest code seems to be ok. Are you sure you are adding energyPickUps to array? try tracing after:

if (energyPickupList.length > 0)
{

Or maybe a problem with loop?

 
Flag Post

Topic: Game Programming / Problem with HTML5 in iFrame and arrow keys

What a nice game! It really refreshed me this morning 5/5.