Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Esti

Pages: 1 ... 3 4 [5] 6
help / Re: Need help protecting my game for FGL
« on: Tue, Apr 24, 2012 »
I never used that solution so I didn't do anything of that. I had to quit my preloader. Also I didn't used the on site encription, I ended up downloading the secureSWF demo and encrypting it with the funstorm settings you can see in a previous post.

With this method you can protect the code but without sitelocking is pretty useless.

help / Re: Need help protecting my game for FGL
« on: Tue, Apr 24, 2012 »
Because I am stupid. I didn't think about that. :o

Anyway, I have a question, I will need to lock some subdomains and I saw this,1908.msg11938.html#msg11938

do you think this is ok?

private var myURLs:Array;

myURLs[0] = "";
myURLs[1] = "";
myURLs[2] = "";
myURLs[3] = "";

Code: [Select]
var isOk:Boolean = true;
if (myURLs!=null && myURLs.length > 0)
isOk = false;
for (var i:int = 0; i<myURLs.length; i++)
if (root.loaderInfo.url.indexOf(myURLs[i]) < 0)
isOk = true;
if(!FlxG.debug && !isOk) // the ! was missing

Edit: I copied the code to the main menu but I am getting "col: 9 Error: Access of undefined property root." at this line
Code: [Select]
if (root.loaderInfo.url.indexOf(myURLs[i]) < 0) even though I imported everything that was on the preloader.

help / Re: Need help protecting my game for FGL
« on: Tue, Apr 24, 2012 »
Well, I just used the funstorm settings he shows here,6048.msg34187.html#msg34187 but I didn't put the urls to lock, that was the problem in the first time.

There is actually, check out FlxPreloader. I've never used it, so I can't comment on how well it works / how secure it is, but it's there

Code: [Select]
* Set this to your game's URL to use built-in site-locking.
public var myURL:String;

... but then again since the online kindisoft thingy overrides your preloader, maybe it won't work? Worth a try. And if not you can always copy Flixel's method and put it somewhere else:

Code: [Select]
(root.loaderInfo.url.indexOf(myURL) < 0)

Thanks, I tried this yesterday but didn't work, I think you are right and it's because the override.

help / Re: Need help protecting my game for FGL
« on: Mon, Apr 23, 2012 »
I made the encryption work but not the site locking.

I didn't add the urls and it worked, also looks like the kindisoft preloader overrides mine but is ok.

Is there a way to site lock my game to FGL with flixel?

help / Re: Need help protecting my game for FGL
« on: Mon, Apr 23, 2012 »
thanks.Posting right now.

help / Need help protecting my game for FGL(SOLVED)
« on: Mon, Apr 23, 2012 »
I finished my first game and I tried to use the on-site secure swf protection but I had issues.

First of all with the on-site thing I got a blank screen so I decided to follow some help seen in similar topics here, like,6048.msg34187.html#msg34187 and,5684.msg32046.html#msg32046 but without any luck. I still have a blank screen.

I tried everything, I disabled the preloader (I am using the flixel one) , downloaded the secure swf demo and played with the settings , like adding an exception for org.Flixel.* etc.

 I also found this . It is in spanish but the traduction is: "I created a FlashDevelop as3 project with preloader, copied that to my game and in Project -> Properties -> Compiler options -> Additional Compiler Options put the following line-Main frame 2, where Main is the class Main inherited from FlxGame. Also you have to put it in the preloader in the function startup ()."

The problem with this solution is that I don't know how to add that line("-Main frame ") into the startup() function.

I don't know what else to do. Thanks.

games / Re: "Dukes and Dirigibles" preview
« on: Thu, Apr 19, 2012 »
Yep, no loader for me neither. Great game!

help / Re: Tiles with parallax effect
« on: Fri, Apr 13, 2012 »
thanks, I thought there was an easy way like seting tile properties or something.

games / Re: 2am Truck Stop
« on: Thu, Apr 12, 2012 »

help / Tiles with parallax effect
« on: Thu, Apr 12, 2012 »
I am finishing a small platformer game , I made the maps using DAME and implemented them with the photonstorm tutorial way. I already use some images in the background with scrollfactor but is there a way to implement it to the tiles that are in the background?

I have a layer for the entire map and I set the collidable and non collidable tiles so maybe I can add scrollfactor to the non-collid ones?

releases / Re: Spriter - Flixel implementation
« on: Tue, Apr 10, 2012 »
Great work indeed. This app is very promising and I was wondering if it was viable in flixel.

Yes the bar knows when is full because it's asociated to a variable number. Check the power tool demo and you'll see, the bars have a range that you can adjust with .setRange().

Also you'll see in the demo the bar is asociated to the "health" of the object and when it's depleted it gets removed.

help / Re: about height width and offset
« on: Thu, Mar 8, 2012 »
So do you see the actual bounding boxes in debug mode? the ` key and the top right box icon that shows bounding boxes.

Wow thanks didn't know I can do that.

what you said earlier is correct, it should pretty much center a 16x16 square. Adding on what to test84 said, displaying bounding boxes will help verify any glitchyness.

Also keep in mind that if you flip the sprite (ex. facing = right), it flips according to the top left corner (where 0,0 is)

great, thanks

help / Re: Creating an "impact" pause effect?
« on: Wed, Mar 7, 2012 »
Maybe you can set the sprites velocities to 0 in the moment of the colission, wait some milliseconds and set the velocities again.

Well you came just in time because I've just fixed this in my project,  I was getting a crappy framerate in debug and a better one in release mode but after a while it was getting bad also.

The solution: I uninstalled all the flash players from add/quit programs in control panel and then downloaded and installed these players again.

help / Re: about height width and offset
« on: Wed, Mar 7, 2012 »

I have this bat and I want the blue square to overlap with the player so I set the dimensions but somehow it doesn't work well.

I use: loadgraphic(blabla,blabla,32,30)


The white box is bigger than the image because it is animated and it takes more space in other frames.

help / Re: about height width and offset
« on: Tue, Mar 6, 2012 »
thanks, I also found a function called centerOffsets. I just wanted to know if the theory was right because in practice the colission sometimes feels glitchy.

help / about height width and offset
« on: Tue, Mar 6, 2012 »
I would like to know if I understand this right, I have this sprite that is for example 32x32 pixels and I load it and set the width and height lower;16x16.

I want the blue square to be the hitbox, is this ok? thanks.

I get it now, Thank you!.   :-*

The problem was my Posesion function recieved 2 parameters that were "Sprite" type so if wanted to call a specific function of the enemy asociated to that sprite I wouln't know how. I changed the parameters to Enemy and Player now.

Funny fact:  is "posesion" because it is in spanish  ;D

I can now continue with my ghost-possessive thing I've here.

Pages: 1 ... 3 4 [5] 6