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 - paala

Pages: 1 2 [3] 4 5 ... 13
41
I sent you a PM. and yes is not limited to free web games.

42
Hello,
Is anyone from US/UK here willing to collaborate, over 18 years old?
Details via PM.

43
help / Re: Help with registry and level manager
« on: Thu, Apr 25, 2013 »
the easiest solution is to have one playstate and load levels from xml generated by dame:
check:http://forums.flixel.org/index.php/topic,6775.msg37667.html#msg37667

44
help / Re: Making multiplayer games with SmartFoxServer
« on: Wed, Apr 17, 2013 »
How about Union Platform, free for 1000 concurent users per server?
www.unionplatform.com.
There is bassically no support at all in forums, but it's kind of free.
anyway playerio is much expensive than smartfoxserver if you want a realtime multiplayer.
I think i will make a post or blog post about comparision of multiplayer frameworks..

45
help / Re: fla to main.as
« on: Wed, Apr 10, 2013 »
first you should try to do same project with Flash develop, and then attach it to flixel, by changing stage with FlxG.stage

46
help / Re: Flixel with Facebook?
« on: Fri, Mar 22, 2013 »
I finally manage to do it.
I'll post here how i've done just in case someone needs it.
0. you will need a hosting site(there are many free). for local testing you can use localhost as server.
1. index.php-> in local can be index.html
Code: [Select]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
</head>
<body>
<div id="fb-root"></div>
<div id="flashContent">
<h1>You need at least Flash Player 9.0 to view this page.</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div> 
<script type="text/javascript">
//Dynamic publishing with swfObject

//A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("FlixelDemo.swf", "flashContent", "640", "480", "9.0", null, null, null, {name:"flashContent"});
</script>
</body>
</html>

replace flixeldemo.swf ,resolution, and minimum FP version with your own

2. Facebook api initialization:
Code: [Select]
private var APP_ID:String = "126650734******";

override public function create():void
{
FlxG.mouse.show();
//FlxKongregate.init(apiHasLoaded);
Facebook.init(APP_ID, onInit);
...................................................
//functions:
protected function onInit(result:Object, fail:Object):void {                       
    if (result) { //already logged in because of existing session
        FlxG.log("onInit, user is logged in");
access_token=Facebook.getAuthResponse().accessToken;
apiisloaded = true;

    } else {
        FlxG.log("onInit, user is not logged in");
        // the opts are the scope you require for your application
        var opts:Object = {scope:"publish_stream,publish_actions, user_photos",perms:'publish_stream'};//here you set up what permissions should ask
        // this calls the Facebook login function and sets the call back to onLogin
        // this should pop up the required dialogs for the user and return when done
        Facebook.login(onLogin, opts);//{perms:'read_stream,publish_stream'}
    }
}
        protected function onLogin(result:Object, fail:Object):void {
    if (result) { //successfully logged in
        // now the user is logged in and
       FlxG.log("logged in");
        // call the API to get the user's info, we will show you what goes in onCallApi next
        Facebook.api("/me", onCallApi);
    } else {
        FlxG.log("login failed");
    }
}       
        protected function onCallApi(result:Object, fail:Object):void {
    // if there is a result that means that the call was successful
    if (result) {
        // trace out the name of the user that was returned and then a JSON string with the rest
        FlxG.log("RESULTS"+ result.name+ JSON.encode(result));
    } else {
        // there was an error, lets find out what it was
        FlxG.log("ERROR"+JSON.encode(fail));
    }
}


3. get facebook username:
Code: [Select]
Facebook.api('/me', onMyInfoLoaded);
..............................

private  function onMyInfoLoaded(response:Object,fail:Object):void
{
    FlxG.log("onMyInfoLoaded "+response.id);
    user = response.name;//this one: private var user:String;
facebookid = response.id;//my own
aluatfacebookid = true;//my own
}

4. post massage by it's own: needs stream publish permission:
Code: [Select]
if (FlxG.keys.justPressed("X")) {//cand pui link nu mai ia mesaj
var params:Object={message:"blablabainca o data cum multe param",/*link:'top100flashgames.com',*/picture:'http://www.top100flashgames.com/images/ad_example.png',name: 'Post name',description: 'description'}
Facebook.api('/me/feed',postare,params,'POST')
}
function "postare " it is used just for logs:
Code: [Select]
private function postare(result:Object, fail:Object):void {

if (result) { FlxG.log("ok") }
else {FlxG.log("fail again")}
}
5. invite user to post a message via UI:

Code: [Select]
if (FlxG.keys.justPressed("Y")) {//the best way via UI.
var params2:Object={message:"Via UI2 FB",link:'top100flashgames.com',picture:'http://www.top100flashgames.com/images/ad_example.png',name: 'Post name',description: 'description'}
Facebook.ui('stream.publish',params2,postare,'iframe')
}

6. payment with FB credits:
not yet done :
6.1 you will need a php script on your website: like the one here: https://developers.facebook.com/docs/payments/callback/#php_example
in the FB payment tutorial page:https://developers.facebook.com/docs/payments/build/#callback

after that in as 3 check here:http://fbdevforum.com/facebook-developers/forum.developers.facebook.net/viewtopiccdd6bceb4f14bd93275a2988138f10bc.html

47
help / Re: Flixel Air Android perfomance
« on: Wed, Mar 20, 2013 »
I tested myself, and it works very nice but has some limitation of resolution as the above posts state.
So if you cannot use  resolution higher than 400x240, which means that you must have zoom x2 .
One question. How do you add touch spites to control your char?
for example in this game: https://play.google.com/store/apps/details?id=air.de.codinsoft.littleRoboRunFree&hl=en
You cannot add just a sprite - button if mouse is pressed do something, because you must press 2 sprites at the same time..


48
help / Re: Flixel with Facebook?
« on: Sat, Mar 16, 2013 »
Well, it seams that you manage to do it.
Beat air is on Facebook and working as expected.
I am trying now to do the same thing with my game.
Can you help me because I am totally lost?

This is my setup:
I installed xampp and make a facebook folder inside htdocs.
In Facebook i made localhost/facebook as my canvas URL.
Inside htdocs/facebook i have index.html and FlixelDemo.swf.

index.html:
Code: [Select]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<object type="application/x-shockwave-flash" data="FlixelDemo.swf" width="640" height="480">
<param name="movie" value="FlixelDemo.swf">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="salign" value="LT">
<param name="menu" value="false">
</object>
</body>
</html>

FlixelDemo.swf in created by flixel with:
Code: [Select]
.......
private var APP_ID:String = "my id censored:P";

override public function create():void
{
FlxG.mouse.show();

Facebook.init(APP_ID, onInit);
.....................................
protected function onInit(result:Object, fail:Object):void {                       
    if (result) { //already logged in because of existing session
        FlxG.log("onInit, user is logged in");
    } else {
        FlxG.log("onInit, user is not logged in");
        // the opts are the scope you require for your application
        var opts:Object = {scope:"publish_stream, user_photos"};
        // this calls the Facebook login function and sets the call back to onLogin
        // this should pop up the required dialogs for the user and return when done
        Facebook.login(onLogin, opts);
    }
}

No logs appear in FlxG.log, this means that Facebook.init doesn;t get executed..

So can you help me? what files should i put in my test folder(html, PHP?), to get the facebook api working?

49
help / Re: Flixel and JSON, can it happen?
« on: Wed, Mar 13, 2013 »
Using this huge sprite sheet isn't necessary. For example  first row in your sprite sheet  has the same art. There are lots of duplicate frames there, and the spacing is huge only to show gun effect. you can put the gun effect into a separate sprite and attach it to player.
You can make a huge sprite sheet is you target flash player 11 or above , but the game will become slower, regardless of framework you are using.

50
releases / Re: v3.0 planning thread
« on: Wed, Mar 13, 2013 »
Hey, Canabalt is open source in I OS.
And your post is kind of advertising of Haxe...
Personally I saw a flixel game made with adobe air that runs super smooth on my 75$ tablet.
So why use Haxe when Adobe air does a pretty good job?

51
I think the problem at my side is screen tearing which is discuss here:
http://forums.flixel.org/index.php?topic=4247.0
And this problem is flixel independent but i don't know why in my games at flixel 2.43 vs 2.5  the screen tearing and v sync problems were less visible.

52
For me Castaway 2 is very choppy. So i guess it depends on the computer or monitor.

53
This doesn't fix at all. Even in the demo the camera movement is still jerky.

54
For allowing all keyboard input you should do:
Code: [Select]
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;and in the website:
Code: [Select]
<param name="allowFullScreenInteractive" value="true" />like in this link:
Code: [Select]
http://www.leebrimelow.com/flash-player-11-3-fullscreen-keyboard-input/

55
 The flxinput of Gama looks promising but it missed the mouse  select text, copy,paste..

56
help / Re: Flash develop organisation help
« on: Wed, Feb 6, 2013 »
Solved , I put // before { and it works

57
help / Flash develop organisation help[SOLVED]
« on: Wed, Feb 6, 2013 »
Hello,
I found out that code inside {} braces can be hidden by pressing a plus sign that appears on the left side(where the lines are numbered).
However if I have
Code: [Select]
{
private var myvariable:Array=[blb, bla]
}
later if I want to write myva... it supposed to appear a kind of drop down menu with myvariable to avoid typos.
However with the code above inside {} myvariable doesn't appear in that drop down menu.
Can you help me?

58
So, putting the autodestroy doesn't fixed the issue? I didn't understand your last phrase.

59
help / Re: Music files and the size of the game
« on: Sat, Feb 2, 2013 »
Embed the music file in on Registry class and make reference to it on every class you will need that music. Check photonstorm blog for tips on doing a registry class.

60
pepperflash is a special flash made from chrome .. i don;t know exactly...  it has issues with sound delay, it saves sol files in other places that regular flash.
Anyway you should test the game in regular flash with 30 fps

Pages: 1 2 [3] 4 5 ... 13