ActionScript 3.0 :: Create A Top Trumps Game In Flash?
Apr 19, 2011
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.
View 9 Replies
Similar Posts:
Mar 28, 2012
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.
View 2 Replies
Aug 11, 2010
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.
View 1 Replies
Sep 2, 2009
how to create a 3D game in flash, sort of like a FPS game? I've used 3D objects, I just don't know how to control them.
View 1 Replies
Aug 11, 2010
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.
View 1 Replies
Mar 10, 2011
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
View 1 Replies
Oct 22, 2010
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?
View 1 Replies
Aug 26, 2011
What would be steps and technology needed to create a flash board game on Facebook? - something like checkers?
Will all game attributes - like ability to keep score, resume broken games and invite friends?
View 1 Replies
Dec 5, 2004
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.
View 2 Replies
Oct 13, 2010
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.
View 2 Replies
Oct 17, 2010
How do you create a flash in game popup on the same frame?I need to make a popup in flash on the same frame. Basiclly like you reach the frame and randomly (I know how to do random stuff) a popup might appear saying like you got a prize; and I want the stuff in the back to stay the same.
View 11 Replies
Feb 23, 2011
I want to develop a web application that when a user is login the game will automatically search for oppents onlinethat are accessing the same website. I want to design a chess game that does not contain any AI programming. What I want is that a simple chess setup that online user can only play.
View 1 Replies
Sep 6, 2011
I know how i can create a button but how do i make it activate different vehicles before the race starts.
View 5 Replies
Jul 12, 2010
How can I modify 2d racing game to seem like isometry? Flash + ActionScript3
ScreeShot:: The game is totally in 2d. Car moves like it should and while it drives the ground everything is fine.I've added a grey ramp. Now the car should move like the arrows are showing, creating illusion of a 3d (isometry).
Ramp is divided in 3 sectors
-first,sector to the right (where the car is currently situated);
-second,sector to the left;
-third, sector on top;
Plus I need the car,to jump out from the ramp when the speed is high. I reffer to old scholl game Rock'n'Roll Racing (Blizzard's game for Sega)So the questions are
1) How should I change car's angle and velocities(velocityX and velocityY) when driving on the ramp ?
2) How can I initiate jumping out of the ramp? For example like in Rock'n'Roll racing? or how Blizzards essentially did it?
View 1 Replies
Nov 24, 2011
create a side scroll game in flash..and i dont know whats the easiest and best to do it,, if i can i wish my game can access to a database to save and load it.
View 5 Replies
Aug 17, 2010
I'm trying to create a little adventure/flash movie game.. where you click around on things and something happens, but the main idea is a little quest where you trade items with few NPC's around the game to get to the end..
As an inventory I have plain drawn inventory, and invisable items/movie_clips on it, that only go visible once the NPC's did action of giving you them and making it visible in your inventory spot (I know, stupid but I'm a noob).. The reason for this is cause I wanted the Quest Items to be as Drag/Drop items while giving to NPC's, not just press/dissapear routine thing..
What I'm having problem with is, saving quest items the Character got from the NPC's.. (in other words they dissapear once the character goes back to the FIRST scene/frame of the game) What I'm looking for is a code that can check if in previous scene/frame were those movie clips visible or invisable, and apply that to the next scene.. so that the items/movie_clips wouldn't dissaear when switching between scenes/frames..
here is an example of what I'm doing, but with out the nessasery code for checking, so it doesn't work properly from the second frame and when you go back to the first one again: here is a link for the flash on deviantArt:the codes that I'm using are multiply drag&drop that I found:[URL] Code in frame for multiply drag&drop:
stop();
_root.blue_mc._visible=false; //makes blue ball invisable at start
_root.green_mc._visible=false; //make green ball invisable at start
[code]....
View 6 Replies
Jan 16, 2012
I am kind of new to Flash and only really know really basic stuff. (Scenario) I have made a local game in Flash CS3 Professional for my Advanced Higher Computing project for school which is almost completely glitch free. But my teacher says it needs a file handling feature, such as a high score feature in it to make it AH standard. I want to make a simple high score feature where it takes the final score, asks the user to input their name, and add it to a .txt file. Since the computers at my school are very limited, I cannot use programs like Adobe AIR or PHP or anything like that so I need it to be simple. (Question) So I really need a full tutorial (where to put the coding, layout and everything) to:
Check if there is an existing .txt file called (for example) "High Score.txt" If there is, load it. If not, create a .txt file called (for example) "High Score.txt" to the desktop. Take the users input and place it with their final score after it. (Optional but not required) Arrange the scores in order of highest to lowest or display the top 5.
View 1 Replies
Jul 21, 2010
I am a newbie in flash actionscript. My assignment needed me to create a simple flash mathematics game for mobile. Some Mathematics question will appear in order and 4 options will be provided for each question. On the top, there will be an object. The object will move 1 step forward if the answer for the question is correct. But if the answer is wrong, there will be a popup message "try again". when the object move to the ending point. You win the game. And the timer will stop timing and record the time in the memory. And the time will be display in a high score tab.
View 0 Replies
Jan 17, 2011
I need to create a flash game whereby there will be 6 pick up line voices and you need to match the voices to the faces of who you think the voice belongs to. Do you know any tutorials of this nature.It also needs to calculate score.
View 1 Replies
Apr 1, 2011
I'm looking to create a flash game eviroment where a client's members can play each other in a realtime environment. Mostly trivia question type things, and maybe some shared animations. I've done this over RTMP before with a host that also provided video streaming, but I only need the Shared Object communications this time. does Shared Object communication take just as much resources as video to support?
View 1 Replies
Nov 5, 2011
I have a list of 700 words that I would like to convert to symbols in Flash for a flash card game. I'm trying to make a game where a random symbol from a slice of the array of symbols will come into game play until the user performs an action.Basically, I'm wondering how I can create an arrayed/indexed library of symbols from a dictionary, for a downloadable Flash game. Does anyone know how I could start to script this? Also, if I want to pair a 'word symbol' with its translation, do I need to use a database? Obviously, because it's a flash-card type game I'm working on, the translated symbol is just as valuable as the original-language symbol.
View 1 Replies
Oct 13, 2011
I'm making a small Flash game, which is rotating rings in an image to create a coherent picture. Think of the puzzles in Assassins Creed.I have three scenes set up, one with the puzzle, one with a fade to white transition, and one with a congratulatory screen.
I have this code to check if the orientation of the rings match, but I'm really new to actionscript so I'm not sure if it's right or not.
function orientationCheck()
{
if (center.orientation == 0 && ring1.orientation == 0 && ring2.orientation == 0 && ring3.orientation == 0 && ring4.orientation == 0)
[code]....
Unfortunately it keeps playing through the movie and not giving the player time to solve the puzzle.
View 9 Replies
Jul 22, 2010
I'm creating an number of games for my HSC major project and I'm having trouble with creating a colouring in book. This is the code I have:
[Code]...
It works although when I test the movie no matter what colour the player chooses it always colours in red,
View 7 Replies
Aug 29, 2007
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]...
View 1 Replies
Feb 28, 2011
I'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 Replies
Dec 14, 2011
I am thinking of developing of a game like this: [URL]... Do you have any idea - by which game engine I may develop this type of games? I am not sure whether I have to use any 3d physics engine? I think JiglibFlash may be useful, but I am not sure.
View 1 Replies
May 7, 2010
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?
View 1 Replies
Nov 12, 2010
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)
[code]....
View 11 Replies
Nov 4, 2011
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)
View 1 Replies
Dec 30, 2009
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.
View 3 Replies