Plan a game in AS3, need help

Hi so I'll make quite a big game/app in AS3 and I need someone to point me in the right direction, I know as3 and have programmed many games.

This game will include multiplayer and we're going to do this, use smartFox.

Now the area I need some information on are servers to hold the details of the player. (Level etc., species)

First of all:

How to set up a server? Use MySQL? Is a Web page that I can connect to my game?

How would I connect to it via AS3? I have to use SELECT MySQL and MySQL files to find the player and then send back it details?

Basically, I need to know how the games as configuration servers FarmVile to contain details of the player because I have to do the same thing for this game.

It's really how to get data to the game to you. When you use classes like URLLoader you can send variables (via GET or POST) on the server to authenticate and process your application. At that time then your PHP script is responsible to read the request and to answer with the information however you like it.

For your first game, that I would recommend you stick with very structures known as XML or JSON for responses from your PHP scripts.

For example, if you use JSON, first configure you your application in AS3, to say things that you receive text gross (binary or varying URL) return code. Your PHP script receives the request, performs the necessary operations (on the basis of data, etc.) to get the information you need. He is then responsible for structuring this back to what awaits Flash (JSON) and as you probably know PHP has built-in JSON (http://php.net/JSON) encoding. After your response of crafts and print, AS3 that will consider a response. Can you decode side AS3 as JSON and use the information according to your needs.

Finally in the future when your game balance grows, you can start making web services which manage more efficient binary formats such as the authority of the financial markets. Then you can do it with the standard messages is not even worth performance wise. Also, you will go from HTTP requests to direct applications of socket. If your game is standard you can even use web based RESTful services so look at those if you're not familiar.

Yes, you will need a host, but I can't recommend one because I have no idea what you're building. If you plan to build an MMO so no web host will really make you account inexpensive cluster hosted for this scale of a game. If it's just tracking the leader boards and user accounts then I often use hosts that adapts to of lowercase/cheap dedicated using my own equipment, like site5.com.

Tags: Adobe Animate

Similar Questions

  • Installed Directx11 and now no games not working - need help

    Recently, I had windows 7 and for some months now, I've been able to play my games very well (warcraft 3/world of warcraft/civilization 4) without any problem at all.

    Yesterday, I tried to get a new game called heroes of newerth, then departure I got an error that I found, after rising, it was supposed to be fixable by obtaining the latest version of Directx.
    So I've updated to DirectX 9.0 c (which worked very well for a long time) to Directx11, using dxwebsteup.

    Warcraft 3 freezes simply on the launch screen.
    WoW know either update directx 9.0 c and update your video driver (FYI I did the last yesterday, then don't suggest for me to update my graphics driver I did already). And then will not start.
    Other games say error running script of D3D and an assortment of texts simular to that.

    When I run DXDIAG everything happens perfect without any detected problems and showing Directx11 under version. I tried to run dxwebsteup several times in case something has not installed right but without success.

    During hours of research this problem and through Needless to information on Directx, I found that these four fail conclusions:
    1. run the DirectX 9.0 c Installer and it will overwrite Directx11. I tried and it didn't.
    2 uninstall Directx11 will run - regedit - HKEY LOCAL MACHINE - SOFTWARE - Microsoft - Directx and the deletion of this file. Supposedly I could and then restart the computer and install DirectX 9.0 c. After you remove the folder and restart, I noticed several things; but above all, nothing has changed. My computer do not redo the Directx folder, it disappeared completely. The problem is not gone, and also when I try to launch Directx9.0c nothing happens as usual. In DXDIAG, it still says there is no problem and the version is still Directx11, and when I try to run dxwebsteup I get a new error: internal year error has occurred. Please be DXError.log and Directx.log in your windows folder to determine the problem. I'm distraught about what it means and it seems that I myself got in deeper problems.
    3 download a program that can uninstall Directx. I tried this but I have found no program that is compatible with Windows 7 which uninstalls Directx, or y at - it even not with vista.
    4. I am hallucinating; Directx11 is backward compatible, and for this reason, it is impossible to downgrade or install Directx11 Windows 7. No, I'm not hallucinating, it actually happens and even if Directx11 is supposed to play games that require fewer versions of Directx mine isn't.

    Is it really impossible to uninstall/downgrade Directx11?
    Does anyone have any suggestions as to why this is happening and how I can get Directx11 for work with my games?

    Please help it is incredibly frustrating and tedious.

    No.... it wasn't just a game, it was all my games and the problem was Directx11. At least I was, because I made the post I managed to solve the problem of what I was I canceled my video driver and everything was perfect, once again, so it must be something to do with my video driver updated and is not not properly compatible with directx11.

  • WRT160N V3 games problems! need help!

    OK, here's our problem, I just moved about 6 weeks ago and have since purchased a wrt160n router, my brother and I can lose countless hours playing COD4 on our ps3 (2 on our network both wireless) we often have trouble connecting when playing @ simultaneously. He seems to get along with him immediately online, but when I log in game, I have to wait anywhere between 5 to 20 minutes, because it now says 'download settings', we thought it was a problem of the internet from comcast, but now I hear about port forwarding? I was power cycling think it was a bad internet connection and the strange thing is going online with the ps3 it gets first right line but the other must wait 5 to 20 minutes? someone has an idea? I can't find the help I need or if I can't find an article on this subject, it does not specify if the fix works for more than 1 PS3?

    Our facility:

    Cable modem

    Router WRT160n

    1 computer (wired connection)

    1 laptop (wireless)

    and 2 Playstation 3 (both wireless)

    You have to open the Ports to your PS3 on your router. If this isn't the case, then I think it is perhaps because of this, you have to deal with this problem.

    Open an Internet Explorer browser on your computer (desktop) wired page. In the address bar type - 192.168.1.1 and press ENTER... Let the empty user name & password use admin lowercase...

    This settings are for your 1st PS3.

    On the Configuration tab, change MTU size in 1452 and click on save settings...

    Once you return to the game to the top page, click the Security tab and uncheck block anonymous Internet requests and click on save settings...

    Click on the tab "Games and Applications" and then click the sub-tab "Port Range Forwarding"...

    (1) on the first line in the box, type Application in ABC, in the start box, type 80 and type of box in 80, leave the Protocol as and under type 192.168.1.20 ip address and check the box to enable...

    (2) on the second line in the box, type Application in DEF, in the start box, type in 443 and the type of box in 443, leave the Protocol as and under type 192.168.1.20 ip address and check the box to enable...

    (3) on line 3 in box from Application to the IAD, in the start box, type type in 5223 and type of box in 5223, leave the Protocol as and under type 192.168.1.20 ip address and check the box to enable...

    (4) on the fourth line in Application area type in JKL, in the start box, type in 3478 and 3479 end box type, leave the Protocol as and under type 192.168.1.20 ip address and check the box to enable...

    (5) on the fifth line of type Application in MNO, in the start box, box type in 3658 and type of box in 3658, leave the Protocol as and under type 192.168.1.20 ip address and check the box to enable...

    (6) on the sixth row in the box, type Application in PQR, in the start box, type 10070 to 10080 end box type, leave the Protocol as and under type 192.168.1.20 ip address and check the enable box and click on save settings

    (7) now assign IP on the ip address of your PlayStation:-192.168.1.20, subnet mask:-255.255.255.0 default gateway:-192.168.1.1...

    (8) also assign addresses dns on the primary dns of PlayStation:-4.2.2.2... Secondary dns:-192.168.1.1

    (9) turn off your modem, router and PlayStation... Wait a minute...

    (10) connect the power supply to the modem first, wait another minute and plug the router power cable, wait another minute, and turn on the PlayStation and test...

    For you 2 PS3, follow this setting.

    When you connect to the router configuration page, click on 'Application and Gaming' and then click on the "DMZ" sub-tab below, click on 'Activate' and in the IP Source address, type the IP address: 192.168.1.50 and clik on save settings.

    Now you need to assign a static IP address on your 2nd PS3. 192.168.1.50 subnet mask IP address:-255.255.255.0 default gateway:-192.168.1.1... Primary dns:-4.2.2.2... Secondary dns:-192.168.1.1...

    Turn off your modem, router and PlayStation... Wait a minute...

    Now try to connect your PS3 to your wireless network and try to play this game and see how his work.

  • To AS2 AS3, need help.

    I learned Flash using AS2 and I try now migrate to AS3, but some of the simplest things have changed.  I know I can't put script directly on movieclips now, but I do not know how to use if the conditions to check for movieclips hit some frames, etc.

    Can someone direct me to the tutorials on the displacement of AS2 AS3 and some of the fundamental behaviors of AS3.

    For example:

    If I had a movieclip I used as a button and I tried jumping a specific image when another movieclip on the stage struck a framework?  With AS2, I could simply put a script on the movieclip itself that says something like:

    onClipEvent (EnterFrame)

    {

    If (this ._currentframe is 10)

    {

    _parent.sampleClip.gotoAndStop (2);

    }

    }

    I don't know how to do simple same navigation like this in AS3 code.

    Thanks for the help.

    There are a lot of tutorials and a few great books too. For tutorials that you probably want just a search on any specific problems that you find. Regarding the example you gave, it is a little different in 3 and also better:

    someMovieClip.addEventListener (Event.ENTER_FRAME, checkFrame);
    function checkFrame(e:Event) {}
    if(someMovieClip.currentFrame == 10) {}
    sampleClip.gotoAndStop (2);
    }
    }

    I say better because you don't need to worry about scope as you did in 2 - checkFrame is not executed in the context of the someMovieClip - sampleClip is available directly, you don't need to 'parent' to access.

  • How to cancel the Plan of photography? [was: need help]

    IM taking a college course in graphic design and for the work of the House, I did the $9.99 per month plan. I just learned that the course is only a semester long and do not see me in the future using this a lot so I was wondering if anyone knew how to get into the setting to cancel the plan in any way?

    You may please check out the link below for instructions on cancellation.

    Cancel your membership creative cloud

    For more information you can contact the Support from Adobe by clicking on the link below.

    Contact the customer service

    Please make sure that you are connected to the right Adobe ID.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • AS3: need help to solve a problam function

    Hey, I need your help once again.

    I have a wheelchair clip that I want to just move left and right in a loop, I have this code:

    var wheelChairRightTimer:Timer = new Timer (120,24);
    var wheelChairLeftTimer:Timer = new Timer (120,24);

    wheelChairRightTimer.addEventListener (TimerEvent.TIMER, moveRight);
    wheelChairRightTimer.addEventListener (TimerEvent.TIMER_COMPLETE, startMoveLeft);
    wheelChairLeftTimer.addEventListener (TimerEvent.TIMER, moveLeft);
    wheelChairLeftTimer.addEventListener (TimerEvent.TIMER_COMPLETE, startMoveRight);

    wheelChairRightTimer.start ();

    function moveRight(event:TimerEvent):void {}
    wheelChair.x = wheelChair.x + 20;
    }

    function moveLeft(event:TimerEvent):void {}
    wheelChair.x = wheelChair.x - 20;
    }

    function startMoveLeft(event:TimerEvent):void {}
    wheelChairLeftTimer.start ();
    }

    function startMoveRight(event:TimerEvent):void {}
    wheelChairRightTimer.start ();
    }

    The problam is with the last function "startMoveRight". Without this feature the wheelchair goes right and left as he should and everything stops. I added the last function loop the movment, but after the first round of movment left and right (which works well), it seems that all 4 functions are called together so the wheelchair is battery mobile 20 px right and left 20 px.

    I know this probably isn't the best way, in other ways, or just a way to fix this will help a lot!

    This should do it:

    // speed
    var vx:Number = 20;
    
    var chairTimer:Timer = new Timer(120);
    chairTimer.addEventListener(TimerEvent.TIMER, moveChair);
    chairTimer.start();
    
    function moveChair(e:TimerEvent):void {
         wheelChair.x += vx;
         if (chairTimer.currentCount % 24 == 0) {
              // change direction
              vx *= -1;
         }
         e.updateAfterEvent();
    }
    

    Post edited by: Andrei1

  • New to AS3 needing help with the key

    OK Im a newb full when it comes to AS3.  Here's what I'm trying to accomplish, I try to make my link button to another page of mine and it loads into the central computer of the original source page.  I found some code to bind the button to a Web site or else my page, but it just opened another window and as previously indicated, I want it to load into the central computer, the button is in the left frame.  Any help would be great, here is the code I use to bind.

    aboutbtn.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {}
    navigateToURL (new URLRequest (". (("/ aboutus.htm '));
    }

    Thanks in advance for the help

    You beat me to it: Yes, it was the parenthesis.

  • When I install FSX SP2, the box of the menu showing the plan chosen and also in the game, the graphics are all messed up (black, black with lines on the screen and so on) do not know what to do? I need help.

    I have FSX Deluxe. When I installed FSX SP1, it was all fine, but when I installed FSX SP2 graphics were messed up. So I uninstalled FSX SP2 and tried again, and it was the same thing. So I uninstalled FSX all together and reinstalled fresh and put on FSX SP1, it was going well until I put FSX SP2, the same thing happened again, messed up graphics.

    So I uninstalled FSX SP2 and updated my drivers graphic and tried again and the same thing happened.

    I need help please.
    Thank you

    Hi Mmarshall_1993,

    Welcome to the Microsoft Answers site.

    We would like to get a better understanding of this issue, so we can better help not only you but other users with similar problems.

    (a) what operating system do you use?

    Method 1:

    Adjust display settings

    Many recent Microsoft games require a card video and monitor that can run a resolution of at least 800 x 600 in color (16 bit). Set the resolution of Windows display on 800 x 600 in color (16 bit), and then test the game. To do this, follow these steps:

    1. in Windows XP, click Start, point to settings and then click Control Panel.
    In Windows Vista, click on start to reduce this includes personalization thtype in the Search box and then click on personalization in the programs list.

    2. in Windows XP, double-click display.
    In Windows Vista, click display settings.

    3. click on the settings tab.

    4. move the slider of the desktop area or screen area slider to 800 x 600 pixel definition.

    5. in the Color Palette box or in the color box, click colors (16 bit).

    6. click OK and then click OK again.

    7. click Yes to accept the setting.

    Method 2:

    Adjust graphics hardware acceleration

    To adjust graphics hardware acceleration, use the method described for the operating system that you use:

    ·         Windows Vista

    1. click on start to reduce this includes this ima, type personalization in the Start Search box, and then click personalization in the list of programs .

    2. click on display settings.

    3. click on Advanced settings.

    4. click the Troubleshooting tab, and then click change settings.

    Reduce this includes this imIf that you are prompted for an administrator password or a confirmation, type the password or click on allow.

    5. move the notches on both Hardware Acceleration slider to the left of full (the parameter disable the accelerations of cursor and bitmap ).

    6. click OK and then click restart now.

    7. once the computer has restarted, test the game.

    ·         Microsoft Windows 2000 or Windows XP

    1. click on Start, point to settings and then click Control Panel.

    2. double-click on display.

    3. on the settings tab, click Advanced.

    4. click on the Troubleshooting tab.

    5. move the notches on both Hardware Acceleration slider to the left of full (the turn off all cursor and advanced drawing accelerations setting).

    6. click OK and then click OK again.

    7. test the game.

    Method 3:

    Check or turn on Direct 3D

    To check or turn on Windows XP Direct3D acceleration, follow these steps:

    1. click on Start, click run, type dxdiag , and then click OK.

    2. on the display tab, verify that all DirectX features are enabled. If all the features are disabled, click enable next to the feature.
    Note If some DirectX features are unavailable, verify that your video card meets the minimum requirements.

    For more information, follow the below mentioned articles.

    How to resolve display issues in Microsoft games

    http://support.Microsoft.com/kb/263039

    The Flight Simulator X game display flickers and are damaged on a Windows Vista-based computer that is connected to multiple monitors

    http://support.Microsoft.com/kb/933590

    Hope this information is useful.

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need help with a simple basketball game.

    Hi im new here and I need help with what makes this simple basketball game.

    Im trying to recreate this this video game. I'm not sure if it uses as2 or as3

    If someone could help me make a game like this or point me to a link on how to do it would be greatly appreciated.

    AS2 is used in the video.  If you have other issues, please post in the forum AS1/AS2.

  • Need help with AS3!

    Hello! I need help on as3. I'm still a noob at this stuff.

    I'm doing a simple game. You must click on the bugs that moves randomly to the bottom of the screen. When you click on the bugs, they will become invisible

    and if none of the bugs through the bottom of the screen, you lose 1 live.

    But right now, im of the problems with the script. When I click on the bugs and she go, life is further reduced. I don't understand.

    And theres also error coming out. "TypeError: Error #1009: cannot access a property or method of a null object reference."

    " to buh_fla::MainTimeline/tekan().

    Here is the script:

    ===================================

    Stop();

    import flash.events.Event;

    import flash.events.MouseEvent;

    var iscore:int = 0;

    score. Text = iscore.toString ();

    var health: int;

    health = 3;

    trace (Health);

    for (var i: int = 0; i < 10; i ++) {}

    var f: bug = new bogues();

    addChild (f);

    var fn = Math.round (Math.random () * 2) + 1;

    f.gotoAndPlay (fn);

    f.x = Math.random () * stage.stageWidth;

    f.SP = Math.random () * 7;

    f.addEventListener (Event.ENTER_FRAME, animate);

    f.addEventListener (MouseEvent.CLICK, klik);

    }

    function klik(e:MouseEvent) {}

    e.target.visible = false;

    iscore += 1;

    score. Text = iscore.toString ();

    }

    function animate (e: Event) {}

    e.Target.y += e.target.sp;

    if(e.Target.y > stage.stageHeight) {}

    -health;

    trace (Health);

    e.Target.y = - 20;

    e.Target.Visible = true;

    {if(health==0)}

    gotoAndPlay ("gameover")

    }

    }

    }

    ============================================

    You lose life because you are not to remove bugs or their listener but only making them invisible

    function klik(e:MouseEvent) {}

    e.Target.Visible = false;

    iscore += 1;

    score. Text = iscore.toString ();

    to this code

    var delbug = e.currentTarget
    delbug (Event.ENTER_FRAME, animate) .removeEventListener;

    removeChild (delbug)

    }

    --

    http://ww.darshanrane.com

  • Need help to find and install the game Chess Titans Windows Vista for XP

    Need help to find and install the game Chess Titans Windows Vista for XP

    Hi SBOYDC130guy,

    We will not be able to install titan of failures on windows XP because it is designed for Windows Vista and Windows 7 and it's built-in game.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Need help to uninstall the game Deadspace

    Original title: uninstall Deadspace

    need help to uninstall the game Deadspace

    What you're looking for?
     
    Revo uninstaller can be faster.
     
  • Games Explorer opens very slowly, diagnostic, need help to heal.

    This is an old topic but, I found just what exactly is the cause it is so slow, now I need help, correct.

    Symptom: The Games Explorer menu or a window, takes a lot of time to load all the shortcuts.

    Frequency: It seems to be a cycle time, even if I have not taken the time to set it. Once the menu is allowed to load completely, it will then instantly for a certain period of time. After this time, it loads and then start again slowly once again the cycle.

    Reproducible: 100%

    Cause: AV real-time analysis is something to do with the menu scanning.

    Evidence:

    #1 using process explore * you can see MsMpEng.exe fire upwards and on my system using 25% of cpu resources, when you open the menu/window and run until finally loading shortcuts, then stop.

    #2 Si you disable real-time scanning * menu loads instantaneously, every time.

    I need to know what exactly is swept, why it is wiped out and how to stop the research of...

    I tried to add the "C:\Users\Username\AppData\Local\Microsoft\Windows\GameExplorer" folder to the exclusion list because that's where shortcuts seem to be actually created. It made no difference.

    I tried to add the folder "C:\Games" I have install all my games there too. It made no difference.

    With the help of Games Explorer Manager , I modified each shortcut so that the AppPathExe = the real game.exe and not the file created by windows. It made no difference.

    Using the same program I also removed any url * of each shortcut. It made no difference.

    Please DO NOT suggest any action that you yourself have not personally confirmed the result of.

    Please DO NOT answer with some crazy form letter which guess I'm stupid or ignorant.

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653

    * I use Microsoft Security Essentials on Windows 7 Pro x 64

    I have the Options of Games Explorer put "Never search online for updates and new" and unchecked the two "download art and information" and "collect more recently played the game information.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:
  • Need help on choosing 11.1.2.3.500 or 11.1.2.4 for Hyperion financial planning project

    Need help on choosing 11.1.2.3.500 or 11.1.2.4 for Hyperion planning project implementation.

    Currently, we are debating on the following points, so need for expert advice, if someone have already done this.

    • As all our previous implementation are on 11.1.2.3 500 and we know with certainty, it is stable
    • 11.1.2.4 is fairly new in the market

    That said y at - he already put 11.1.2.4 implemented for the PPP in particular, if yes how is the stability. As we have hard time have no place for the bugs that deals.

    Thanks in advance,

    Deker P.

    I don't think that 11.1.2.3.500 for planning is massively different the 11.1.2.4 so for stability, they should be similar, the improvements are mainly around the simplified interface.

    I would recommend going with 11.1.2.4, he is already on his third patch for the planning so I hope that all important questions will have been met, if there is a concern, then perhaps you should look at POC.

    See you soon

    John

  • Hi, I need help, because I have a cancelled plan but I do not have the return!

    Hi, I need help, because I have a cancelled plan but I do not have the return!

    Hello

    I will arrange for the refund to be processed - please allow 3-5 days.

    Kind regards

    Bev

Maybe you are looking for