Recent posts by ehaugw on Kongregate

Subscribe to Recent posts by ehaugw on Kongregate

avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

I still have a lot of work left to do, but it is interactive. You can shoot, jump, access the inventory etc. I’m gonna add the zombies, menus etc soon.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

It’s soon playable. I’m working on the pathfinding at the moment.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by popo9823:

Maybe in the next one there should be a story mode and survival so that players can experience the game in 2 different ways?

Working on a free roaming survival combined with tower defense.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

I don’t actually blame Activision, this did what they had to protect their copyrighted stuff. I just did not except them to even care about flash developers. Take a look at this for instance:

http://www.kongregate.com/games/LogansfvTemp/codp-call-of-duty-parody?acomplete=call+of+duty

That game has been on Kongregate for 2 years, and the name looks quite equal to “Call of Duty” to me.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / MOUSE_OVER

Originally posted by Aesica:

So you want to check for an event without using an event listener? Perhaps witchcraft is what you’re looking for.

Thanks for helping…

Originally posted by NineFiveThree:

What’s the motivation behind your request?
What are you trying to do?

You can add it in the class of your buttons.
That’d still add it to every object, but the adding is happening in “one place” code wise.

You can add the listener to the document class and let the Events bubble up.
This however does not necessarily give you access to the button object via .target, if it has mouseChildren.

I want to add a glow filter to my cursor when it is hovering over a SimpleButton clip, the .target property is not needed.

What could be possible is to overwrite the mouseover function of the SimpleButton class to tell when I have hovered the mouse over a button. What would you say about that 953?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / MOUSE_OVER

Hey, is there an easy way to know when any button in a SWF has been mouse-overed, without adding a listener to each button?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Lead for Dead: Call of the Dead was released 10th of Mars 2011, this topic were made a little later (I can prove this if needed). If I knew this shit would come up, and trademarked my name, I could actually sell it to Activision for quite a lot. I didn’t bother to trademark anything, because 1) I were just a flash developer, who would care about me, and 2) How could I know Activision were going to take the same name?

But as IceWeaselX said, they had their rights to do this, and it was kind of reasonable, but why care about poor game developers at Kongregate?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by AvalancheO:

Activision would.

True that, they are assholes. But I will not let they ruin our fun this time =D

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Which error code do you hate most?

What error code has pissed you off most during your flash developing? My answer is clear: 1034.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

I solved it by putting the buttons inside a movieclip, and linking this movieclip for AS instead of the button. This 1034 error is so damn unpredictable!

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / I accidently bought 2 copys of super hexagon on steam

On school like 5 years ago, we learned that limericks sounds like this:

a
a
b
b
a

My rhymes are flawless, right?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by 6thgraderhere:
Originally posted by ehaugw:
Originally posted by GameBuilder15:
Originally posted by ehaugw:

the game is down, because of copyright things.

I told you! Who contacted you, Treyarch?

Do you think Duracell will sue me for using their battery design in my new game?

Best to stay safe, just change it a bit or make your own.

True that. I don’t really think they will care though. Like, who would sue someone for having a picture of a battery in their game?!

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

They are added to the inventory movieclip before compiling, so it should be of PhaseTest class automatically.

The cool question is how does the inventory affect the CreateCharacter stuff even when it’s not loaded?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

Originally posted by alecz127:

code or it didn’t happen.



//Inventorty class:

package  {
	
	import flash.display.MovieClip;
	
	
	public class Inventory extends ExMovieClip {
		
		
		public function Inventory() {
			
		}
		
	}
	
}


//ExButton class:

package  {
	
	import flash.display.SimpleButton;
	
	
	public class ExButton extends SimpleButton {
		
		public function ExButton() {
		}
		
		var registeredevents:Array = [];
		public function registerEvent(eventID, functionID):void {
			registeredevents.push([eventID, functionID])
			addEventListener(eventID, functionID)
		}
	}
}


//Phase test class:

package  {
	
	import flash.display.SimpleButton;
	
	
	public class PhaseTest extends ExButton {
		
		
		public function PhaseTest() {
			// constructor code
		}
	}
	
}


// Create character class:

package  {
	
	import flash.display.MovieClip;
	import flash.events.*
	
	public class CreateCharacter extends ExMovieClip {
		
		public function CreateCharacter() {
			onload()
			portrait.gotoAndStop(5);
			portrait.gender.gotoAndStop(1);
			portrait.gender.char.gotoAndStop(10);
		}
	}	
}

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

Sounds reasonable, but why would would it not give error when the Inventory Class is not in use?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

Originally posted by claytronweber:

https://support.trionworlds.com/app/answers/detail/a_id/915/~/how-to-fix-error-1034

I use Mac, I don’t have any Anti-Virus or Firewall applications.

Anyway, how does this affect my code?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / Error 1034

Hey guys, I have trouble with error 1034.

I have a class I use for all my buttons, called ExButton (extends SimpleButton), and I have a button in the library linked for actionscript as PhaseTest. In the properties section, I set ExButton to be the base class instead of SimpleButton.

I also have a movieclip called “CreateCharacter” in the library, linked for AS. Inside that movieclip, there are a few PhaseTest buttons. I have another movieclip called Inventory. This movieclip does also contain instances of PhaseTest. This movieclip is not linked for scripting.

Everything works fine, the button inherits the properties from ExButton etc. The problem comes when I link Inventory for AS. When I create a instance of CreateCharacter and add it to stage, I get this error:

TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::SimpleButton@5175f0f9 to PhaseTest.

It bugs out even before Inventory is used for the first time. The fact that I link Inventory for scripting makes the error come.

Can someone please explain me exactly what this error is?

Ps. My stage is empty, everything is added to stage by scripts, and all scripts are placed in classes.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / The Worst game ever (Poll)

Runescape, end of discussion, close this topic :P

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / The Best Game Ever [Poll]

World of Warcraft: The Burning Crusade

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Originally posted by GameBuilder15:
Originally posted by ehaugw:

the game is down, because of copyright things.

I told you! Who contacted you, Treyarch?

Do you think Duracell will sue me for using their battery design in my new game?

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / What is your Analog Sensitivity?

I use insane when I play CoD, if that answers your question.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: General Gaming / Lead for Dead: Call of the Dead

Hey guys, I just wanted to say that I am back to kongregate, and is developing a new game quite similar to Lead for Dead together with my old flash artist. It will be a free roaming survival zombie game, just so you know… Any suggestions for new features are welcome.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Kongregate / Suggestions

Make your own shouts not show up as a unread message.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / [AS3] Pass by value

All right, sounds like I got no choice then ^^ Thanks for the help.

 
avatar for ehaugw ehaugw 530 posts
Flag Post

Topic: Game Programming / [AS3] Pass by value

Woah, all that comments, I’ll see what I can get out of it. Thanks guys. As RTL_Shadow understood, I’m talking about the object datatype (often called libraries in other languages), not random objects. The object may contain other objects, arrays or other datatypes, so a general function would be great, if this is not possible, I think I must do a dirty “hack” :P