ActionScript 3.0 :: Create A Penalty Shootout Game With It?
Mar 26, 2011
I currently have three weeks left ony my degree and the last thing i have to do is build a penalty shootout game with Actionscript 3.0.
I thought i would be able to do this but im having trouble getting my head round this.
I understand that i need to have a player, a ball, goalposts, a crowd and i need a scoring system.
I know all the basics but i have no idea how to actually go about making this a fully functional game, is there any tutorials on making a penalty shootout game?
The game contains a timer which displays on screen and counts up displaying hours, minutes and seconds.
When the hint button is pressed the game adds 1 to the penalty counter.
Code: penalty++;
What I want to happen is for 20 seconds to be added the time shown at the end of the game for every time the hint button is pressed.
Below is the timer code:
Code: function TimerHandler(e:TimerEvent):void{ var Seconds:String = String(uint(MyTimer.currentCount%60)); var Minutes:String = String(uint((MyTimer.currentCount/60)%60)) var Hours:String = String(uint((MyTimer.currentCount/60)/60));
im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:
Code: package { import flash.display.MovieClip; public class TamagotchiGame extends MovieClip {
[code]....
I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.
I want to create a flash game (a simple drag and drop, probably) and at the end of it, if the user wins, I wanna send him/her to a "certificate" page where there will be a certificate that I have designed. The user will then have the option of printing this certificate.
I have this problem when i go to shot and then have shot the gun all movie clips accessed after shooting dont stop playing but repeat continuously[code]...
I am at uni and have a project to create an interactive game for the story Johnny Mnemonic. I would like to create a game whereby the player has a whip type weapon, there is an opponent jumping up and down and with the whip you attack them and cut off limbs -
I'm thinking it would be like a simple shooting ducks style game in terms of coding, the player has visible just a hand with the whip in it, you move the whip to your desired location click chosen button to hit, the whip then animates a flick, if it hits correct spot on bouncing opponent then an animation of the limb flying off happens, so the bouncing opponent is like the duck and the whip like the gun - if that is right at all?
I'm talking about the icons that Flash game websites have to show each game.My method was play my game, take a screenshot, cut out the game part of the screenshot, shrink it to size, save as an image.
I am creating a Simple Flash Maze Game,and i have 2 'Movie Clips' that i want to react when the collide.IE. When 'CHAR_LVL1' (A Movie Clip, controlled with the Arrow Keys) comes into contact with 'WALL_LVL1'. I want it to 'gotoAndStop(27);'[code].I am using Flash CS5 and Action Script 2.0
I want people to be able the input the amount of money they want to transfer from one var to the other, then choose if they want to deposit or withdraw using a button. They will then get a 5% intrest every Saturday 00:00.I have:
var named totrewarded (ur points) (dynamic text) var banked (amount in blank) (dynamic text) var transfer (amount to transfer from tot to bank) (input text up to 6 chars)
i had a project that i need to create a vocabulary game.i want to create a game like the following game.url...but i dont know how to write the drag and drop script.(write in AS2)
I am making sims like game and right now I am trying to figure out how I will structure my objects. right now I am thinking to create a class called GameObject, the psuedo is below
public class GameObject { name:String width:int height:int }
This way I could create objects like bushes, trees, and buildings. But then I began to think. what if I wanted to create multiple buildings and trees of the same type ?? I would have to keep making instances of GameObject and giving it a new name and height and width. The properties would have to be the same values in order for me to duplicate one object. That seems a little tedious. Then I figure , maybe that isnt the right way to go. So I was thinking, I would have to extend GameObject like below
public class Tree extends GameObject{ birdHouse:Boolean } public class Building extends GameObject{
[code].....
Now this way I can create a class that has a method that loosely accept accepts any type that inherits GameObject.
Selector.loadObject(gObject:IGameObject);
Depending on what type it is (i.e tree, building, house) I can use a case statement to figure out which type it is and evaluate it accordingly.
I also created a Tile Class that will pass through the loadObject method. It also will be a child of the GameOject class. if the case statement finds that it is type Tile, it will highlight whatever Tile depending on what tile my mouse is over.
My second question is if a class inherits a class that implements a interface, is that class child class considered to be a IGameObject as well. or does it have to implement that interface directly. does all this sound like I am going in the right directions lol, as far as organization is concerned.
now i need to add a health bar and countdown timer on the screen. how am i going to do it? adding a plane in the 3d scene? the health bar is always on the top right corner of the screen. is there anyway of NOT using 3d concept to implement this. i mean i could do it with a plane keep changing it's texture to show the status of the character. is there any cleaner way of doing it?
i'm kind of new to flash and I started creating a game and i've gotten to the point where my game can: shoot, move char., kill enemy and add to score, once lives = 0 then game over, and multiple enemies that shoot.Ok, my problem now is that i'm trying to get it so that once my score is over a certain amount then increase the number of enemies, and i'm using this code now to control how many enemies are on the screen at once:[code]but for some reason this just doesn't work... Can anyone tell me why or link me to a tutorial on how to create levels in a game?
Im trying to create a MTG game in Flash, and with creating a new MC, I've discovered a problem.
library = [1, 2, 3, 4, 5, 6, 7]; i = library.length; d = 1;
[Code]....
I can't change the ._x value of a new MC called "hand"+d, d just being one more new MC. I've tried many things to try and fix this but I have not succeeded. The underlined line is what needs to be fixed.
Right now I am creating a game kinda like the helicopter game. I have been trying to decide how make my world. I tryed drawing the entire thing and then just have it play through in a motion tween (classic tween) but that was way to time consuming. Also when you hit the objects in this world you die and its game over just like in the helicopter game.
I am trying to create a top trumps game in Flash AS3 and so far haven't got much working.The game is about supercars and there is 58 of these cards.
Each card has 5 values: speed, 0-60, power, weight and cost (Some of these values were not easy to find out.Ideally I want the player to click the play button and be taken to a page that's already been built. Next I want AS3 to select 30 of these 58 cards and split them evenly between the AI and player. Possibly using a variable?I'm thinking that I'll need a continue button for after the player has selected a value and have already wrote the code to compare the values.
I just want to create a simple timer for a car game which notes the lap time each time you cross the finish line. I then want to be able to use the "gotoAndPlay (frame number)" once either a certain amount of laps have been completed or when the timer hits a specified number.I have exhausted tutorials, none of which actually work - what im looking for is 'i think' actually quite simple but i am having great difficulty.... The car game tutorial with 4 parts which seems to pop up everywhere does not help as it is very complex and can only be used when the game is designed in the way that the guys has made it.
my latest project is to create an interactive version of the map for the game, GTA: San Andreas. Here are some of the features I would like to add:(Images have been made as a quick demonstration - the real thing will use the map)URL...Zoomed out, selectable pieces of the map (like jigsaw pieces).The different "jigsaw" pieces of the map are based on the borderlines of where each town/village starts/ends.URL...When a region on the map is chosen, it zooms into the region, allowing the user to select a town/village within that region. This screen will have a "back" button on it to allow the user to go back to the whole map.URL...After choosing a town/village, the last screen appears, providing an image (screenshot from in-game) of the destination with information to the left or right of the image. This screen will also have a "back" button on it to allow the user to go back to the chosen region. The detail on the map will also show basic places that the player of the game would like to know, such as hospital locations, ammu-nation locations (gun shops) and safehouses.Once I have the basic version done, I plan on updating it by adding locations of other items, such as vehicles, collectables and weapons.
1) Is it possible to make oddly-shaped hotspots, which are interactable (clickable and what not)? I know you can make rectangular hotspots, but the borderlines of the towns and villages in the game aren't straight lines, and most require more than 4 lines to make the shape.
2) Is there any way I can learn the code that Flash uses? Just so I understand it a bit more, since I am using it for a two-year school project too, which goes towards my GCSEs next year. I would just like to get more familiar with Flash, and maybe the other programs, Illustrator and Fireworks. The only ones I know well are Photoshop and Dreamweaver.
I'm trying to create Hearts, the card game, as a personal project to learn more AS3.Game requirement:Players should be able to sign in to a server and look for other players to play against.1 player can play against 3. There can be several games at a time.There should be some way to store the history of scores onto databases anyone give me information on the technologies involved? I can go read up more on my own.
I know a bit of Actionscript, PHP, MySQL, no Javascript.
I would like to know how can I create a dress up game in Flash/Actionscript where users can click on (not drag and drop) the available accessories/clothing and the avatar will display with the new selection immediately, and I can save the settings and take snapshot of the avatar in the new clothing selection. It will be good if there is references/tutorials that I can follow.
And secondly, may I know how do I save the selection, is it via xml or json or database? It will be good to store the clothes/accessories dynamically.
I'm working on a game and want the freedom to choose between UDP and TCP connections in the future when I decide to add multiplayer. I'm not sure how something like this would work in the browser with security.
There are two scenarios I can think of for multiplayer. The first is that a player becomes the host of the game (in the browser) and thus would need to communicate with other players directly via TCP or UDP. This would save me on bandwidth costs.
The second scenario would be to have the web server host the game and pass messages back and forth to the clients again via TCP or UDP.
Do Flash or Java applets let me do something like this? If not is there an alternative I can use for the browser or am I stuck with moving to providing a game download and installation?
I am creating a 2d platform shooting game. Currently I have my main character walking around left and right and the stage background also moves left and right.
The problem I am having is that if I go to far left the charater just walks 'off stage' and into nothingness but the stage still follows. How can I make it so if the character hits a certain point he just 'stops' and cant go left no more but can go right no problem. I have tried using hitTest with another movieclip but couldnt get it working.[code]...
I am trying to create a health bar at the top of my game screen. I have gotten it to go down when the characters get hurt but no matter what i try i cant get the file to go to the next scene when health= 0.
I have tried to create a simple Hangman game, it works great, but I have two problems. Number one, the course I�m taking requires that there should be an if else statement in the actionscript programming (in an appropriate manner in connection with the user interaction) and I realy don�t know how to fix that. I�m tearing my hair. Number 2 Preferably I would like the program, alternating between several different words.