ActionScript 3.0 :: Make Simple Multi Player Game?
Mar 30, 2012I want to make a simple multi player game so any one give me sample code or how to do that ?
View 1 RepliesI want to make a simple multi player game so any one give me sample code or how to do that ?
View 1 RepliesHaving a bit of trouble with this. Even when I get it to work from my desktop, it still malfunctions when posted to my server.
View 1 RepliesI'm developing a web-based fantasy football game. Most of the game is a straight-forward web application built on top of Linux/Apache/Php/MySQL.
I'm trying to figure out how to implement the draft application. The draft date and time will be scheduled in advance by each league's owner. Up to 32 users may be logged on for a given league's draft, and there is no limit to how many drafts may be happening concurrently. The users will take turns selecting players, and each user's turn will have a time limit. I'd like for all the users to be able to see whose turn it is, how much time that user has left to select a player, who they select, and which players are still available. If there are users in the league who are not logged in during the draft I'd like to be able to detect that and automatically assign players to them rather than waiting for the time to run out on their turn. Ideally I'd also like to have a chat window so the users could chat with one another during the draft.
My background is in desktop application development, so if necessary I could write server code in C#/.NET or Java. As far as I can see these are the options: PHP/AJAX - It seems like it would be possible to have all the state for the draft in the database and have the operations for the draft run in PHP triggered by requests from the clients? I guess in this case the draft doesn't start until at least one user logs in, and it seems like it would be a lot of polling requests to the server if I want everyone notified quickly when a user makes a selection.
[Code]...
is it possible to develope multi player game from different computers in flash using as3. As i hv learned abt AS3 we cant create a server socket it can only send the req to server socket. but it can e done through AIR(I HOPE SO),
View 1 RepliesI have an air application that I'd like to turn into a multi-player game. I'd like to have 2-40 concurrent connections per "room". We would like to have 1-10 rooms going at once in the beginning. I'd like for users to be able to share voice and video but that's not a requirement.
Users will be racing each other based on data that's updated once every second, so ping doesn't have to be super low. 1000ms would be fine but lower is preferred.[URL]..
Cirrus looks perfect. I've heard some problems about firewall and port settings, but was wondering if anyone had experience with at home users and Cirrus. Another problem is that it's been in labs for ever. You can get RTMFP with Flash Media Server Enterprise but that's like 60k-70k per processor, way out of our price range. I've also looked at [URL] but it doesn't support RTMFP. I know we can host this on AWS and maybe save some money.
There is an open source project (cumulus) that implements RTMFP too but I've read that it's more of a POC then a production ready project. The license is also GPL which doesn't work for our commercial application. I've also looked at[URL].. but again, no RTMFP integration.The reason I like RTMFP is because we can scale without a lot of server cost. I know it's a closed protocol from Adobe and it looks like wowza or red5 won't be implementing it any time soon.
Is there an affordable (not 70k per processor) server tech for multi-player gaming that you can use with AIR/Flash that scales well?
Make a simple Multiplayer game (Java server, AS3 client) and i was wondering, how would i get people to be able to select their clothing?
Im going to have the data stored in a database, but i want to know, how would i go about keeping a shirt/pants/shoes of each colour and merging them (For each character's combination) to create a new movieclip (username_figure for example)
I need to make or buy a template for a simple flash game for a clients website. It has to be legit to buy. It is about 5 pages long. You are asked a question, you select a radio button for the answer to the question, it compiles all your answers and gives you a result.I know flash pretty well but ccording to budget and time.it is best not to have to experiment.
View 2 RepliesI have looked everywhere for an example or tutorial on a delta time game loop in AS3. I found many fixed time step examples but very little helpful information on delta time game loops and how it works. I have seen examples that do the calculations in a timer and also seen examples that do the calculations inside the enter_frame event. All the examples I have seen are also incomplete and only provided me with bits and pieces.
View 3 RepliesI'm trying to create a very basic player for my very basic site.
View 3 Repliesi want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 RepliesI'm trying to make a simple MP3 player for a music website: one singer, several song... how to make a mp3Player with a playlist loading from XML file?
I could make a video player using FLVPlayBack with playlist from XML File in a List Composant, but i can't do the same think for audio file, using MediaPlayBack?
I've been trying to make my a simple RTMP player test. It seems to be getting the link, but not actually playing the video.
Here is the code:
Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect("rtmp://video.njspeakup.com/vod/ppd");
var stream_ns:NetStream = new NetStream(connection_nc);
[Code].....
The onStatus is tracing back info, but like I said, nothing is playing. I have a videoPlayer on the stage with the name my_video. The FLA is attached. (CS3)
I'm trying to make a game where the player moves and the background scrolls to make it look like the player is moving but really the background is. The problem is whenever I blow something up in the game the explosion follows the player instead of staying with the background.
View 14 RepliesI'm trying to make a simple flash mp3 player with a play/pause toggle button called toggle_btn. The button is actually a MovieClip with two buttons inside it: play_btn and pause_btn, which live in different places on the MovieClip's timeline. That all works fine, and when I press the play/pause button for the first time, my music plays as expected.
However, when I press it again to pause, it keeps right on playing. If I push it again, the button gets all glitchy, and doesn't go into its rollover state when it should nor toggle when clicked.
Here's my ActionScript:
Code:
// load the playlist
var getFile:URLLoader = new URLLoader(new URLRequest('songs.xml'));
var numSongs:int = 0; // number of songs in playlist -- we'll set this later
[Code]....
I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?
View 1 RepliesI am trying to make a real simple "Connect four" Game without any KI, just for two people taking turns to klick.Sounds easy, but I just can't get it right. I found a .fla in the internet and tried to modify it, but there's some mistake in the script that I just can't figure out.
View 3 RepliesI'm creating a game at the moment for my university course and it involves the player character jumping on top of boxs twice to break them as opposed to just once.What would be the most efficient/simple way of writing this in Actionscript 3.
View 1 RepliesThis is part of a large quiz I am building. The three choices here are part of a group of three from which you should only choose one. If so the other two are enabled=false.I can't change the method only modify since it is part of a much larger app that is runnung fine. So no radio buttons or codeing on maintimeline.
If you run the attached simple FLA and select the first choice you can see the enabled=false that is on the voted and pass framesworks fine, however if you choose the second the first is only disabled and the third is enabled and as logic would have it if you choose the third the first and second are enabled.The idea is to make it so the user can only choose one the other two are disabled while still having the choice to deselect.
This is part of a large quiz I am building. The three choices here are part of a group of three from which you should only choose one. If so the other two are enabled=false. I can't change the method only modify since it is part of a much larger app that is runnung fine. So no radio buttons or codeing on maintimeline. If you run the attached simple FLA and select the first choice you can see the enabled=false that is on the voted and pass framesworks fine, however if you choose the second the first is only disabled and the third is enabled and as logic would have it if you choose the third the first and second are enabled. The idea is to make it so the user can only choose one the other two are disabled while still having the choice to deselect.
View 1 Repliesi am an newbie as3 developer, and i am working on a basic, horizontal shooter platform game.and my question is: how can i make enemies move smart, towards the player? ( but ofcours you are in able to dodge)so like, an enemy is moving to me so when i am not dodging, it will hit the player.
View 2 RepliesIf u have any tutorials, books or links related to this type of code, please forward me for this or my mail id - swamy.webdesigner at gmail.
View 1 Repliesnow i am trying to make some games, I want to design a game with multi users.If u have any tutorials, books or links related to this type of code
View 1 RepliesI am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:
Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)
This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:
Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};
But this is not working.
PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.
I'm trying to make some sort of game where the player is to "escort" a color to a target. The user starts as gray and the player is painted one of four colors when he hits one of the boxes on the screen. The game is over when the player's object is the same color as the target's color and they touch. All this is realized, except a part where the target is a different color every time the game restarts. So far I have
ActionScript Code:
public function randomcolor():void
{
[code]....
The target has a color assigned to it; winrar.color which is working. How do I get things working so the target is actually colored correctly?
Flash is not in my toolset, but I am an old Director jock and have spent some hours dipping my head into the Flash manual. I suppose that makes me a promising beginner-level poster. I'm working in CS5.
I need to make a simple Flash-based sound player for a website for a newly-released novel (http://www.bearriverbooks.com/index.html). I want the user to click on what appears to be an icon (or image), which kicks open a simple controller and starts playing a sound file (a radio interview, which I will probably export using Flash's voice compression). Nothing fancy. Just want the visitor to hear the sound and be able to apply simple controls (stop/start/rewind/volume).
I can learn ActionScript, I suppose, since I used to dream in Lingo, but my life would be a lot simpler if I could just publish a controller without having to roll my own. I'd like to think there's a magic button somewhere that can do this, but I haven't found it yet.
I need to make player like this one URL...Is there a tutorial for this on this site already? If not does anyone know any good tutorials?
View 3 RepliesI am trying to create a menu, similar to a dock menu but that just magnifies the images when rolled over (rather than overly crazy carosels or massively zooming docks. and secondly...the dock menu would link to separate flvs that are on a streaming server. I've never worked with one before and wonder how to connect them to my flash. I'm trying to create an flv player, sorry, shouldve said earlier... but one that only plays 6 vids (linked to by the magnifying dock menu).
View 2 RepliesI have developed a simple quiz game, but im having a slight problem with it.I have a variable set to myScore=0
Everytime you get a right answer it should increment 2points But when you get all 3 answers correct i get a final score of 4points
I was trying to make a game, and the character inside the game could swim. However, I only wanted him to swim in short bursts that refueled every time he hit the ground.
View 9 RepliesI'm sort of new to Flash, have been using it for ages but just to animate, i haven't done any programming or interactive stuff for years, so i feel new to it again!Creating a very simple platform.Movie clip of the character (instance name z_1)- runs button - when pressed makes z_1 invisible and loads another movieclip of him firing a weapon (z_fire). (also makes ground stop moving- basically game is a static running animation, over a moving ground, if that makes sense)This all works fine, i even figured how to make the score increase!After the firing animation is finished (there is a stop on the movieclip) i want the original running animation to be visible again and for the ground etc to play again. The firing animation is only 12 frames long so i imagine i need to tell the button to resume normal service on the stage after that time period![code]It's probably completely wrong but it works, i just need to know the extra code to make the original animations start back again after z_fire has played.
View 2 Replies