Recent posts by aenil333 on Kongregate

Flag Post

Topic: Game Programming / New developer with my first game out

When game start it seem to be loading something very big from google drive. I didnt wait and closed the game because there is no progress bar and i dont know how much time i have to wait. (ive been waiting a total o 15 second with a white screen showing the game was made with unity… not really entertaining) :P Probably the game is fun… but oh well that break it all.

 
Flag Post

Topic: Game Programming / Can developers play their own games ?

I dont see a problem in playing your own game, but if you give yourself powerful character while other play normally, the players might not want to play with you ;p
Good idea is to not tell anyone you are playing…

For the ads it probably depends of many thing, if you are k+ you wont see ads. There is probably a way to add the ads with the kong api or something. There also many kind of ads you can add yourself within your game. All the rules are there when you publish a game as far as i remember.

 
Flag Post

Topic: Game Programming / tls socket and crossdomain.xml problems

Problem was solved.

When trying to create a server in SSL you must have a SSL policy server too. And the server must send a \0 at the end of the data sent (the crossdomains.xml in this case).
Also the crossdomains.xml must have specified port to allow or else flash give violation sandbox and error in syntax reading from the regulation file.

In flash its also not necessary to add a LoadPolicyFile(‘xmlsocket://whatever.com:843’) because flash try to connect to port 843 by default before your connection to the server is made. (that is outside the flash ide testing mode).

Thanks for making it so easy adobe. ;p
2 day wasted.

 
Flag Post

Topic: Game Programming / tls socket and crossdomain.xml problems

Hey guys, been trying to make this work all days. I got a node js server listening on a tls socket (everything work for that part) the problem is the socket policy. I made another server in node js listening on port 843 (still in tls mode) and it actually receive and send the policy, but then it tries to connect back to my real server on port X and send AGAIN that policy request file line… then server close automatically.

Is there something im missing?

 
Flag Post

Topic: Game Programming / WTF is wrong with the Kongregate Community?

hmm i said rogue like cause i just saw what the new gitd was and had that in head sorry, i meant text-based game. lol

 
Flag Post

Topic: Game Programming / WTF is wrong with the Kongregate Community?

Let me suggest you something, in the title screen (the first one you see) write that this is a rogue like game with few graphics, or try a way to make people think this is what its gonna be, be honest. People that dont like those game wont take time to try it and down vote you for nothing. They will just quit as soon as they see this. Now, in the game, you need to show people what phase it is. Like between the time you click attack and the time it attack, a 3,2,1 GO! or something, also make your character flash when they get hit, it will create some interaction and player will know what is happening because right now the numbers of health on each of them is just going too fast, its hard to follow up. If you want to keep it text only, a log textbox with who is hitting who and for how much damage would be more entertaining. Also an ingame leaderboard with players score would be nice! There must be some way to match this with kong api :)

Continue your work! :)

 
Flag Post

Topic: Game Programming / procedural auto tiling

Hi guys.

Been trying to make a map with a bunch of if else and it turned out infernal. (400 line of nested if else and loops).

What i am trying to accomplish is have a square tile map with 4 inside corner, 4 outside corner, 4 border, 1 grass, 1 tree (to replace lonely filled square in middle of grass). Then when i place a grass tile in the map everything correct itself with the good images as border etc…

Ive found some people talking about using a bitwise method on google but all they do is generate map with weird border and i am not sure it would actually work with my set of tiles.

So anyone ever tryed to make something similar or have an idea on how to do this logically? A good tutorial would be cool too, i can only seem to find part of it explained and like i said they generate map that doesnt have square tile as i do.

 
Flag Post

Topic: Game Programming / How to start learning HTML5 and Javascript?

knowing your maths table up to 1024 is always handy

 
Flag Post

Topic: Game Programming / AS3 - Movieclip will not remove itself

you gotta add a name to the mc before using the getchildbyname function

 
Flag Post

Topic: Game Programming / AS3 - Movieclip will not remove itself

if you addChild(x);, you just removeChild(x) in the same class, if the class is extended and you use it from a main class, you need to remove the child within the class. className.removeChild(x); or remove the class itself.

A good way to keep easy tracking of movieclip is to name them, you just do mc.name = “level1”; then later you just removeChild(getChildByName(“level1”));

 
Flag Post

Topic: Game Programming / [AS2] How do you set depth height limit?

http://www.flashandmath.com/intermediate/depths/

 
Flag Post

Topic: Game Programming / Collision

Add a point to your character that will try to hit the wall instead of the character itself. If you go up, point is created 5 pixel away from center of character for example. Thats how i do all my collision.

 
Flag Post

Topic: Game Programming / Secure swf or not

Since it can be used with many projects and its always better to prevent, i think its a good idea to buy it before shit happens even if you didnt make 400$ ;p But i am still afraid that obsfuscating the code so much and encrypting everything can litterally slow down your app…

 
Flag Post

Topic: Game Programming / Secure swf or not

from what it say from the site:

Stop unauthorized copying and redistribution of embedded SWF assets, such as proprietary graphics, animations, sounds, and videos, with secureSWF’s state-of-the-art encryption algorithms. secureSWF also encrypts literal strings containing sensitive URLs, passwords, IDs, and other information, decrypting it only at runtime and only as necessary.

 
Flag Post

Topic: Game Programming / Secure swf or not

Oh and if any dev ever tryed secureSWF i would really like to know your opinion about it. Does it really work? Is it worth 400$ or there are other solution for free or with a lower price? Will it slow down the entire game the way its compiled with it?

 
Flag Post

Topic: Game Programming / Secure swf or not

Hi guys, i got a nice game project going on and i’m facing a major problem. Should i use something like secureSWF to protect my swf or just leave it like it is and don’t care about people decompiling it.

The main problem i can see in not making it secure is people could read data that come trought ssl directly into their flash (everything is possible so i am pretty sure it is) i saw some cheat engine that can change data as it come. It wont affect the game directly since everything will be calculated and verified server side but still..

The second problem is the fear that some team can decompile the code and make something better out of it. (they dont have the server side code but still can have a great idea of whats going on, and to be fair, a server is not much code except for calculation and database).

I’m always blocked by the idea of having my game online then see everything going down cause of some kid that have nothing else to do in their day than hack games. What would you guys do? Care about it all or not? Which point should i focus on? Encrypting the swf? trying to code everything server side only even if it bring a massive bandwith usage?

Tell me how you do it or how a professional would do it plz :)

 
Flag Post

Topic: Game Programming / I want to play your game!!

there is no joke in your game badfitz, once you click go to sleep or watch tv the game sohw some text and more thing to do…. no button

 
Flag Post

Topic: Game Programming / Text adventure game

I hope thats not the final version of the game cause there is not much :P

 
Flag Post

Topic: Game Programming / Text adventure game

here is a working example i just made for you (had time to waste) :P

import flash.events.MouseEvent;
import flash.text.TextField;
import flash.text.TextFormat;

var sequence:int = 0; 
var textDictionnary:Array = new Array(); 
var clickable:Array = new Array();

textDictionnary[0] = ["You are alone in your house and got some time to waste.\nThere is little choice offered to you, what to do?","Watch TV","Go to sleep",1,2];
textDictionnary[1] = ["You are watching tv, what you want to do now?","Go back to thinking", "Go get some food","Go sleep",0,3,2];
textDictionnary[2] = ["You are in your bed but can't find sleep, what to do?","Go back to thinking","Go watch tv",0,1];
textDictionnary[3] = ["You eat some food, what are you gonna do now?","Go back to thinking",0];

Main();

function Main():void {
	UnloadCommon();
	clickable.splice(0);
	addChild(createText(textDictionnary[sequence][0],512,200,0x000000,30));
	trace("Adding : " + textDictionnary[sequence][0]);
	
	for (x = 1; x < (textDictionnary[sequence].length - 1) / 2 + 1; x++) {
		var tempClickable:TextField;
		tempClickable = createText(textDictionnary[sequence][x],512,300+((x-1)*50),0xF20000,20);
		clickable.push(tempClickable)
		tempClickable.name = "" + x;
		tempClickable.addEventListener(MouseEvent.CLICK, onClick);
		addChild(tempClickable);
	}
}
		   
function onClick(e:MouseEvent):void {
	trace(e.target.name);
	for (x = 0; x < textDictionnary.length; x++) {
		if (e.target.text == textDictionnary[x][int(e.target.name)]) {
			var tempNum:int = (textDictionnary[x].length - 1) / 2;
			sequence = textDictionnary[x][int(e.target.name) + tempNum];
			Main();
		}
	}
}

function createText(msg:String,X:Number,Y:Number, color:uint, size:int = 24, font:String = "Arial"):TextField {
	var myText:TextField = new TextField();
	var myTextFormat:TextFormat = new TextFormat();
   	myTextFormat = new TextFormat(font, size, color);
	//myTextFormat.align = "center";
	myText.defaultTextFormat = myTextFormat;
	myText.embedFonts = false;
	myText.multiline = true;
	myText.autoSize = TextFieldAutoSize.CENTER;
	myText.selectable = false;
	myText.x = X;
	myText.y = Y;
	myText.text = msg;
	trace("Created text");
	return myText;
	
}

function UnloadCommon():void {
	while(this.numChildren > 0){
		//trace ('\tStage\t ' +0+'.\t name:' + this.getChildAt(0).name + '\t type:' + typeof (this.getChildAt(0))+ '\t' + this.getChildAt(0));
		this.removeChildAt(0);
	}
}
 
Flag Post

Topic: Game Programming / Multiple 'points' variables????

not quite sure to understand what you want but if you want A B and C to have their own points use array to store the number of each (starting with 0 points for A,B,C in points0 and points1)

var A,B,C:Number;

var points0:Array = [0,0,0]; 
var points1:Array = [0,0,0];

A = points0[0];
B = points0[1];
C = points0[2];
 
Flag Post

Topic: Game Programming / GiTD [#48] Entries and Discussion

Im still trying to figure out what a cyber punk game would look like… i got 0 idea for this gitd :( lol

 
Flag Post

Topic: Game Programming / Game state to String

Not sure what is a “copy/paste” system but what id do is make an array and then save the array with a delimiter ex: ( arr(0) + “;” + arr(1) + “;” ) then you can encrypt the whole string and save locally into a file.

 
Flag Post

Topic: Game Programming / Equipments over a character

Hey guys, i was looking for some ideas to create equipments for a character that will be visible on the character (How-to code it). as3

Tell me if this is the good way to do it:

1) Create parts of the character like left arms, right arms, legs, body, head
2) Create weapon and equipments that fit the character parts in standing position.
4) Add equipments to each child making the character (the equipments will fit the character standing on each part)
5) Place each character childs in one then animate each part on their own (could be legs while moving the whole character etc…) this way, the equipments should stay and move at same time as the body parts move or rotate (i think) and i make one big character mc to move it all at the same time in a direction.

Is that the correct way or im complicating myself?

 
Flag Post

Topic: Game Programming / GiTD [#48] Entries and Discussion

what mean cyber punk?

 
Flag Post

Topic: Game Programming / GiTD [#48] Theme Selection

anything with space or sci-fi i am in :P