Recent posts by Cantor on Kongregate

Flag Post

Topic: Game Programming / The coding to make a simple point and click game using as2

True, but AS3 is faster at doing the same things as AS2… if you get what i mean, or so i have heard anyhow.

The only reason i can think of someone learning AS2 over AS3 is that they don’t have CS3+. But that doesn’t stop you getting other free tools i guess.

 
Flag Post

Topic: Game Programming / The coding to make a simple point and click game using as2

Originally posted by jonathanasdf:

RAWRRR

the exact same thing(in a less nice way)!!!!!!!!!!!!

XD!

I would add that if you are looking to make a game and dont know any coding language. Dont start by learning action script 2, learn action script 3 :P. No point learning an older language if there is a newer one about ^^

 
Flag Post

Topic: Collaborations / Need Error Testers Please.

OK, so after more than 12 hours of testing and at least 30 plays according to swf cabin, it seems that nobody can reproduce the error. So I’m blaming this one on space goblins and giving up.

Cheers all who had a look and if anyone wants to keep trying, please do. I will check back here often to see if you find anything, but knowing my luck that wont happen until i finish the game and then i will get complaints about it being buggy :(

Stupid space goblins…

 
Flag Post

Topic: Collaborations / Need Error Testers Please.

Thank you muchly UnknownGuardian :D
I think it still needs work on the enemy art but its good to hear that i am at least going in the right direction :)

Can’t anyone find the error? I’ve been trying for hours and still when it happens i can’t figure out why…

 
Flag Post

Topic: Collaborations / Need Error Testers Please.

As i said, the error is hard to reproduce :P

Yeah, some of the enemies move. Makes it harder to hit them >:D

I know about not being able to move back when firing the mega laser, just haven’t changed the bounding limits when firing it yet :P

And no, when you get hit by the emp bolt (the blue orb) it stops your energy from going down as it stops you firing any weapons. So what ever energy you have left when you get hit, you still have to use when you regain control.

Cheers for looking anyway guys :)

 
Flag Post

Topic: Collaborations / Need Error Testers Please.

Hi, i am working on a side scrolling shooter and every now and then i get an error but it is hard to reproduce and if i can’t reproduce it i can’t fix it.

So, i’m looking for some helpful people with 5-10 minutes to spare to help me find the bug so i can squish it.

I think it happens after one of the enemies disables you and you regain control and shoot at the enemy that disabled you.

The few times it has happened to me i have just kept space(the main fire button) held down through the entire disabled time and waited for the player ship to start firing again. But it doesn’t always happen.

This is still very early in development so i haven’t optimized the code at all and it does get laggy after a while. If it slows down too much, change the quality settings in the pause menu(P). I have turned off player death so you can test for longer.

The controls are;
Space – main cannons (the one i think is causing the error)
A – mega laser
W – Bomb
D – Gat cannon (may also cause the same error)
P – pause
Arrows – movement

If you do have a go and do get an error, please tell me what you were doing when the error happened, the error number and if you can figure it out, why it happened :) Anyone with any helpful info will be added to the credits of the finished game as a tester.

Cheers all :D

http://www.swfcabin.com/open/1270264726

 
Flag Post

Topic: The Arts / Bad Ads

World Of Lordcraft? XD Good to see people coming up with brilliant, brand new, ideas that are in no way ripped off of big successful companies…

 
Flag Post

Topic: Game Programming / [AS3] 2 SWFs 1 SharedObject?

I have been trying to get 2 SWF files to use a single SharedObject, without success. One file is a settings file and the other is the main, they are kept and used from different locations on the same computer.

What i need to know is, does a SWF create a SO with a unique file path depending on the file name or something? Like make a new folder for each SWFs SO it encounters even if the name of the SO is the same as another already on the computer. And if it does, is there a way to make it work?

the test code i used was:

Settings file

var mySO:SharedObject = SharedObject.getLocal("testSO");
mySO.data.testString = "bla";
mySO.flush();

Main file

var mySO:SharedObject = SharedObject.getLocal("testSO");
trace("mySO.data.testString");

All this does is trace undefined, so it obviously is not reading the SO.

Anyone got any ideas?

 
Flag Post

Topic: The Arts / Good or Rubbish?

Glad you like it :D

I made it in photoshop. basically, it’s just a gradient with some custom brushes i downloaded and filters. I can’t remember the exact process as i did it on the fly but it would be too much to write down on here.

This is one of my old ones, not as good in my opinion but i still like it :P

 
Flag Post

Topic: The Arts / Good or Rubbish?

Well, i didn’t use a tutorial to make it but i see what you mean. But i didn’t want to add any more to it as i thought it may make it too crowded and draw attention away from the name.

 
Flag Post

Topic: The Arts / Good or Rubbish?

Cheers, i may put one of my old ones up in a bit. If people like them enough i could take a few requests ^^

 
Flag Post

Topic: The Arts / Good or Rubbish?

I got bored the other night so i decided to make a new desktop background. After about an hour of staring at my blank screen with an equally blank mind i grabbed my favorite game cases, Left 4 Dead and Fallout 3, for some inspiration.

So do you think it’s good, or rubbish?

 
Flag Post

Topic: Game Programming / [AS3] Custom Key class question...

Ah, i see. Will try that out, cheers NicheGamer.

 
Flag Post

Topic: Game Programming / [AS3] Custom Key class question...

I have had and been using the custom key class for as3, the one that gives as2 Key.isDown functionality for as3.

I get how to use it for the arrows and shift keys and so on with it, but my problem is, how do i use the letter keys? I know how to do it by making a function for keys pressed and another for keys released and i know the keyCodes for the keys i need but i cant use them with the custom key class. I tried,

if(Key.isDown(Keyboard.81))
{
    bla
}

But that didn’t work.

So, does anybody know how to do this?

 
Flag Post

Topic: Game Programming / Reference Error?

Post your code, makes it easier to see the problem.

I think it’s to do with trying to reference the MC before its loaded in, could be wrong though.

 
Flag Post

Topic: Collaborations / Join my team :)

Nobody is going to join a team full of people without any skill. I mean, if i couldn’t swim, i wouldn’t dive into the deep end until i at least learned how to keep my head above the water.

Maybe you should either learn an integral part of the game making process, or as c0rupt3d_l0l said, post up your ideas and see if anyone likes them enough to use them.

 
Flag Post

Topic: Collaborations / I need a few reviews of a game tutorial

1) 4/10
2) No
3) Not at all
4) It is set out quite well, i like the index idea. makes it easy to find what is needed
5) As has been said, there is no real explanation to the code provided
6) If i was a complete newbie to AS i would still be wondering what the code is really doing, sure it would work but i wouldn’t have a good idea why. Those who already know enough flash to understand it could do all of that without the tutorial. The concept is ok but the material is not.

 
Flag Post

Topic: Game Programming / More Array troubles AS3 [Solved]

Now i see where i went wrong. I was referencing the sound in the wrong way. I had;

var array:Array = new Array(“this”, “that”, “the other”, “SoundName”);

and i should have been using;

var array:Array = new Array(“this”, “that”, “the other”, SoundName); //No Quotation marks… (Facepalm)

The var sound:Sound = new array3; now works :)

Cheers Vara :D

 
Flag Post

Topic: Game Programming / Restarting Everything?

Easy or not, it will work :P

 
Flag Post

Topic: Game Programming / More Array troubles AS3 [Solved]

Is it possible to play a sound from a reference in an array. The way i have it set up i want to use a string from the array to get the correct sound from the library.

So the array goes;

var array:Array = new Array("bla", "more bla", "even more bla", "soundName");

i then try to reference it like;

var sound:Sound = new (array[3]);

And that doesn’t work… I have tried everything i could think of and looked online but to no avail.

Any help would be much appreciated. Cheers!

 
Flag Post

Topic: Game Programming / Restarting Everything?

The only way i can think of doing that is to write a function that sets all vars, arrays and so on back to their default state and when the quit button is clicked, run that function.

EG:

function resetAp()
{
    var1 = 0;
    var2 = 0;
    and so on...
}

//then add that to your quit function...
function quit(e:someevent)
{
    gotoAndStop("menu");//or whatever your function is
    resetAp();
}

Hope that helps :)

 
Flag Post

Topic: Game Programming / For Loop Arguments [AS3] Solved

Now i look at it :P

for (currentAngle = -angleLimit; i = 0; currentAngle >= angleLimit; currentAngle += deltaAngle; i++)
 
Flag Post

Topic: Game Programming / Need help with AS error

I think (and could be wrong) that you are trying to call the vars before they are set. I mean that the vars in the onload function aren’t set untill the clip is fully loaded but the onEnterFrame function is running all the time, trying to use vars that have not been set yet.

Try;

class spawn4 extends MovieClip
{
		var randomy1 = 0;
		var randomy2 = 0;
		var randomx = 0;
		var yspeed = 0;
		var xspeed = 0;
		
		
		function onLoad()
	{
		this._y = 195
		
		randomy1 = 2; //Math.round(Math.random()*1 + 1);

		if(randomy1 == 2)
		{
			randomy2 = Math.round(Math.random()*-3 - 3);
			randomy2 += 2;
		}
		yspeed = randomy2;
		
		randomx = Math.round(Math.random()*1 + 1);
		if(randomx == 1){randomx = 5;}
		if(randomx == 2){randomx = -5;}
                xspeed = randomx;

	}
	
		function onEnterFrame()
	{
		if(this._x < -320)
		{
			_root.godclip.challengemodeeasyholder.lives -= 1
			_root.godclip.challengemodeeasyholder.livesnum.text = _root.godclip.challengemodeeasyholder.lives;
		}
		if(this._x > 320)
		{
			_root.godclip.challengemodeeasyholder.lives -= 1
			_root.godclip.challengemodeeasyholder.livesnum.text = _root.godclip.challengemodeeasyholder.lives;
		}
	
		if(this._y < -240)
		{
			_root.godclip.challengemodeeasyholder.outline4.bounce ++;
			
		}

		_y += yspeed;
		_x += xspeed;
		
		if(this.hitTest((_root.godclip.challengemodeeasyholder.outline4.player1)) && (this._x < -194))
		{
			
			_root.godclip.challengemodeeasyholder.score += 1;
			_root.godclip.challengemodeeasyholder.scorenum.text = _root.godclip.challengemodeeasyholder.score;
			if(randomx == -5){randomx = 5}
		}
		if(this.hitTest((_root.godclip.challengemodeeasyholder.outline4.player2)) && (this._x > 209))
		{
			_root.godclip.challengemodeeasyholder.score += 1;
			_root.godclip.challengemodeeasyholder.scorenum.text = _root.godclip.challengemodeeasyholder.score;
			if(randomx == 5){randomx = -5}
		}
	}
}


As i said, i could be wrong. But hope that helps :)

 
Flag Post

Topic: Game Programming / For Loop Arguments [AS3] Solved

you haven’t stated that i is a var in the loop, try;

for (currentAngle = -angleLimit, var i:int = 0; currentAngle >= angleLimit; currentAngle += deltaAngle, i++)
 
Flag Post

Topic: Game Programming / Idle Game AS3 how to prevent cheating

Originally posted by Matoking:

You could make the .sol file to have a bunch of faked values and if they are edited, the game detects them and deletes the save file.

I like that idea, you could add it as a statistic into the api so if anyone cheats it shows them on a leader board for all to see xD That might prevent them cheating, if there is a chance of getting caught they are less likely to do it.