Recent posts by Nolander777 on Kongregate

Flag Post

Topic: Game Programming / Convert Shape or Polygon Boundaries To X and Y Coordinates

In general I don’t know of something that can do that, but in this specific instance, would it not be easier just to consider your shape as two shapes: a rectangle overlayed on top of a circle?

 
Flag Post

Topic: Game Programming / Using one game loop (stage.addEve....(enterFram..)

I usually implement something like a state machine:

private var stateFunction:Function;

private function onEnterFrame(e:event):void{
   frameCounter++;
   if(stateFunction == null){
      stateFunction = firstFunction;
   }
   stateFunction();
}

private function firstFunction():void{
   ///do something using frameCounter as a control
   //maybe change stateFunction to another function 
}

private function secondFunction():void{
   ///do something using frameCounter as a control
   //maybe change stateFunction to another function 
}

  //third function, fourth, fifth, etc
 
Flag Post

Topic: Game Programming / Selecting a target with a mouseEvent

Why does your attacking character have to “listen” for the attack. Why can’t it just be told when to react?

private function attackCharacter(e:Event):void{
   attackingCharacter.typedAttack(e.target as Character);
}
 
Flag Post

Topic: Game Programming / Text based rpg

Be sure to spell check

 
Flag Post

Topic: Game Programming / Good Rating or good players?

If the scores don’t affect anyone else, I would let the user have fun with my game however they want.

 
Flag Post

Topic: Game Programming / Alternative to actionscript

It depends what you are trying to program honestly. Java isn’t even a real alternative to AS3 unless you are creating a really simple tool or perhaps an android app. Those are the only two uses where the languages’ program potential cross paths.

 
Flag Post

Topic: Game Programming / How do I download AS3?

http://www.flashdevelop.org/

 
Flag Post

Topic: Game Programming / c++ memory question

Originally posted by Multihunter:

Oh…. this is embarrassing.

I’m terribly sorry, Nolander777. I have wronged you by not correctly reading the function. I thought it was returning the reference to the array inside the struct.
Your function is the best solution… sorry about that.

hey no need to apologize

 
Flag Post

Topic: Game Programming / c++ memory question

Originally posted by Multihunter:
Originally posted by Nolander777:

static myStruct* foo(){
myStruct* a = new myStruct;
a→theArray = new Array();
return a;
}

That function would cause a memory leak, wouldn’t it? Since you don’t actually have a pointer to the object once the function closes.

A pointer is just a number that refers to a memory location. They always pass by value. returning ‘a’ would return the pointer to the new struct allocation.

‘a’ is being allocated on the stack and will be deleted when the function returns, but not before its value is returned.

 
Flag Post

Topic: Game Programming / c++ memory question

if you are doing something like this:

static myStruct foo(){
myStruct a;
a.theArray = new Array();
return myStruct;
}

then myStruct is being allocated on the Stack memory. When the stack unwinds (e.g. when foo() returns), myStruct will be deleted, (and apparently so would the array).

If you do this:


static myStruct* foo(){
myStruct* a = new myStruct;
a→theArray = new Array();
return a;
}

then your struct will be dynamically allocated on the heap, and will not be destroyed until you do

delete mystructpointer;//where mystructpointer is a pointer to your struct
 
Flag Post

Topic: Game Programming / Try my game!

“You win!” isn’t even centered on the stage . aragaekafleflakfmlkadmflaknfelanfl

 
Flag Post

Topic: Game Programming / Game Idea - Stamina based RPG

The forums aren’t your personal idea notebook. This is the programming forum. What are you trying to discuss?

 
Flag Post

Topic: Game Programming / as3 getting e.targets

Excellent point

 
Flag Post

Topic: Game Programming / as3 getting e.targets

Originally posted by CuriousGaming:



if (event.target is Enemy)
{
event.target.gotHit(damage);
}

Should either be

with(event.target as Enemy)
{
	event.target.gotHit(damage);
}

or

if (event.target is Enemy)
{
	(event.target as Enemy).gotHit(damage);
}
 
Flag Post

Topic: Game Programming / as3 getting e.targets

Event.target is defined as an Object. The Object class does not have a health property. If you want to access the health property, you have to cast it as the actual class of the object.
So,

function targets(e:Event):void{
var myobject:ClassWithHealthProperty;
myobject = e.target as ClassWithHealthProperty;// this will throw an exception if e.target is not a ClassWithHealthProperty.
myobject.health = myobject.health - 1;
}
 
Flag Post

Topic: Game Programming / [AS3] Dynamically alter specific hue

a light to dark gradient only I believe. The ‘H’ value should be the same

 
Flag Post

Topic: Game Programming / [AS3] Dynamically alter specific hue

Hey everyone,

What would be the most efficient way of altering a specific hue with varying light and darkness in a bitmapdata without affecting the other colors?

 
Flag Post

Topic: Game Programming / Can you export a movieclip using Adobe Flash Professional CS6

Alternatively, you can export the movieclip as a .swf file and add it to your assets folder. Then you can embed the ‘symbol’ file (found by expanding the .swf in the explorer) into your code like you would a .png or .svg .

 
Flag Post

Topic: Collaborations / Need artist for flash game

Hello,

I’m a new developer working on my first big release. I’m in need of an artist to create some assets for me.

I’m looking for vector graphics. I haven’t decided on the exact style I want, but if you are interested you can send me your portfolio.

Right now, I need the following assets:

— 3 650X450 animated backgrounds

— 1 to 2 650×450 static backgrounds

— ~10 animated entities (4 -7 short animations)

— 1 animated entity (11 – 15 short animations)

— 5 to 10 special effect animations

— A dozen or so small static images

The vision I have in my mind for these assets is comparable to the style and quality found in Epic Battle Fantasy 3/4, for example. But again, I haven’t decided for sure.

For the work listed above, I offer a negotiable set payment of 400.00 USD. The payment is to be distributed in 10 or so smaller payments (negotiable). Further or substitute compensation (such as revenue sharing) can be negotiated.

Of course, I will give you appropriate credit in-game.

(I plan on designing the buttons, frames, text, symbols, etc. myself. Let me know if this bothers you.)

Any questions or comments can be made here, or by email: ntr11_92@hotmail.com.

Thank you,

Nolander

 
Flag Post

Topic: Collaborations / Competetive Rates for Artists

Hey, everybody.

My game is starting to come together and I’m thinking about hiring an artist. But before I hire somebody I want to do a little research.

How much should I expect to pay an artist to make the assets for a game like Burrito Bison, for example? (Similar quantity and quality of assets)

If you’re an artist here, what compensation would you expect?

 
Flag Post

Topic: Game Programming / Simple question on HOW to create a movieclip?

Originally posted by Bulbopon:

Oh okay thanks that makes sense, never knew you could embed swf’s. So now I’m wondering… if you embed an swf, is there a way to make the swf do different things? For example, have an “idle” animation and then when I need it, an “attack” animation? This seems super easy on a movieclip (goToAndPlay method) but not sure if swf’s have the same functionability

edit: Nevermind, googled it and found out you can just cast the swf has a MovieClip and that should work. Thanks for the responses!

Yes, that’s how you do it. Just like you would cast a class object embedding a .png image as a Bitmap. Because as far as I’m aware, you aren’t actually embedding the entire swf, just the frame images.

 
Flag Post

Topic: Game Programming / Simple question on HOW to create a movieclip?

As long as you can export the animations as swf files, you can embed the symbol in your code, like you would a png. You’ll get something like, [Embed(source=“../../../lib/foo.swf”, symbol=“foo”)]. Edit that code to read: [Embed(source=“../../../lib/foo.swf”)]. That’s how I do it.

 
Flag Post

Topic: Game Programming / How to Give Yourself a Heart Attack

If you’re using GitHub you don’t need dropbox. Also, private repositories are not free.

 
Flag Post

Topic: Game Programming / Dojo Dodger

my game got stuck after level 5 as well

 
Flag Post

Topic: The Arts / Legacy of the Blood Warrior: Rebirth

I see several things that I think can be improved. I am not a professional writer, but I do believe I have a grasp on the basics. The changes below are only improving clarity, rhythm, and order of action.

Regarding clarity, the first thing I added was the word muttered to clarify how Germon was cursing. For all the reader might know, he was shouting expletives at the man walking in. The second thing I changed was replaced the phrase “The man said nothing” because the man speaks in the very next sentence. This either makes the phrase, “The man said nothing” pointless or inconsistent. I also made a similar change as muttered with silently. Finally, “Germon, if I put a curse on your village, no ‘guard’ is going to stop me.” Stop him from putting a curse on the village, or stop him from doing something else? Add something else to clarify.

Some of the sentences were awkwardly worded or didn’t otherwise flow. I changed some of those. Hopefully you can hear the improvement.

When I say ‘order of action’ I am referring to the actions taking place in the narrative. Ordering draws the reader’s attention to important actions, and can build suspense, among other things. For this piece, I notice that you use the preposition ‘As’ a lot, which indicates multiple actions occurring at the same time. ‘As’ is okay to use as long as you follow these rules:

1.) Don’t over use it to the point that it becomes obvious and breaks rhythm. For example, “at the pissing rain as it battered the dirt road, at the trees as they leaned over against the wind.” Instead, replace as with other word combinations, e.g. and, that, which.

2.) Don’t use ‘As’ to assume cause and effect. For example, “Germon Billmun cursed as the figure of a dark robed man entered his tavern.” Here, it seems like you want the reader to assume that Germon is cursing because he notices the man enter, when he could just be cursing while the man enters, unrelated. Add something else to make it clearer.

3.) Don’t introduce an action in the beginning of a sentence with ‘As’. This completely takes away the emphasis from the action and focuses the reader to the conjoining action. For example, “As the man turned and left, Germon shuddered and wished him a horrible trip”. Wait – when did the man decide to leave? Did I miss that?

For contrast, this sentence is okay, “Germon stared blankly, trying to figure out where this man was headed to this time. As he clued in, his glare grew darker.” ‘As he clued in’ is a continuation of the action introduced in the previous sentence, not a new action!.

These are some basic things I noticed. Other big things I noticed were that you use a lot of exposition (you need to show more and tell less), and your piece lacks a lot of detail. For example, I have no idea what either of these characters looks like, whether the tavern is empty, full, closed, normally lively, going out of business. I know nothing that would make the interaction between Germon and the man more interesting. In fact, I didn’t even know that Germon was being brave and or intimidated by the man until the exposition at the end that says how powerful the man is.

Originally posted by MawkM233:

Prologue

Germon Billmun muttered a curse as he saw the figure of a dark robed man entered his tavern. The curse to his existence, he thought bitterly. Germon set down the mug he had been drying as the man walked up to the counter.

“Good evening, Germon. A wonderful night, is it not?” The man asked in mock pleasantry. Even still, Germon looked past him and out the open door where the pissing rain battered the dirt road, and the trees leaned over against the wind. Indeed, to this man, it was a wonderful night.

“And a good evenin’ to you.” Germon said gruffly, “So, what is it you want this time?”

“Ah, getting down to the point. That’s what I like about you, Germon. You never beat around the bush.”

Germon glared, but said nothing. The man, seeing that Germon wasn’t going to say anything, continued. “Anyhow, I was wondering if I could borrow a horse. You see, I have somewhere to go, and I can’t very well ask some man with a wagon to take me there.”

Germon stared blankly, trying to figure out where this man was headed to this time. As he clued in, his glare grew darker. “Aye, you can have a horse. But I warn you now, priest. If you cast any curses on my village, I’ll report you to the guard captain.” The man cleared his throat and leaned in close.

“Germon, if I desire to put a curse on your village, no ‘guard’ is going to stop me.”

With that, the man promptly turned towards the door. As he left, Germon shuddered and silently wished him a horrible trip. But, the priest was right. If he so decides to curse the village, no amount of guards would even come close to killing him.

The curse would have already done that much.

Keep refining. I think this piece has potential.