Creating A Simple Game - HELP
I'm trying to create a simple puzzle like game where there are four images that need to be correctly dropped in the right sequence. If an image is placed correctly a sound like ex:"alright" plays. If all done correctly, a congratulations gets displayed and then a movie plays. If done incorrectly, the image just goes back to it's original position with possibly a sound like "try agian".
I have all the images but I need help scripting it. Please help! I'm new at this!
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-10-2006, 04:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help With Creating A REALLY Simple Game
Hi i'm trying to create a little game in flash for my boyfriend for valentines day, little hearts floating around, you have to catch/click them then a score is added up...i've got my intro, the easy bit, and i think i've found code to float my hearts around but how do i do the clicking and adding up bit?
please help!
thanx
Creating A Looping Background For Simple Game
hello
I have been trying to create a simple looping background of a road - so a car will be placed on top and give the ilusion it is moving on it...
The problem is: I was able to follow the instructions from http://www.jimmcneill.com/loopdemo2.html and it works fine, however, it only works as seen on the link if I publish to HTML... but I need to do the same and publish in Flash...
What am I missing ?
I am quite new to Flash, so I apologize if the question is silly...
I have been struggling to make it work for a few days now and don't seem to find useful info on this problem anywhere...
Any help is REALLY appreciated !
Ariane
Creating A Game
Hey everyone I was just wondering if any1 could help me out with this problem.
Basically I need to produce a game, where there are several different wires that need to be plugged into the appropriate sockets, in order to have a successful ending. I can use flash in terms of designs and animating however I have not yet got the grasp of action scripting. So what I need to know is how I could produce script that would recognize when the correct wire has been into the appropriate socket. There maybe several wires which would then mean at the end once the correct wires have been dragged and dropped into the correct sockets the system will say something like ‘Successful’’. I guess it’s a combination kind of thing but I don’t know how to go about this, any help would be much appreciated.
What Do You Think Of Creating RPG Game ?
So i think we all should unite and create RPG game together and make it very cool with different features ? Of course it is very difficult but together we can do it !!! So what do you tihnk ?
[F8] Creating Game Characters
Hi there i am trying to create a flash characters but i do not know where to start for my online game? can anyone help me please as i never done a fully functional game before thank you.
Help Creating Peg Solitaire Game
I'm creating a peg solitaire game (ie.http://www.bannerblog.com.au/2007/05/peg_solitaire.php)
I have the stage all set, I'm just sitting here scratching my head on how to make it work.
Here's my code:
Code:
function newhole(libName, instName, size, xpos, ypos) {
attachMovie(libName, instName, getNextHighestDepth());
this[instName]._width = size;
this[instName]._height = size;
this[instName]._x = xpos;
this[instName]._y = ypos;
}
function row(libName, instLett, maxrow:Boolean, firstNum:Number, row:Number) {
if (maxrow == true) {
newhole(libName, instLett+(firstNum), 16, 75, row);
newhole(libName, instLett+(firstNum+1), 16, 100, row);
newhole(libName, instLett+(firstNum+2), 16, 125, row);
newhole(libName, instLett+(firstNum+3), 16, 150, row);
newhole(libName, instLett+(firstNum+4), 16, 175, row);
newhole(libName, instLett+(firstNum+5), 16, 200, row);
newhole(libName, instLett+(firstNum+6), 16, 225, row);
} else if (maxrow == false) {
newhole(libName, instLett+(firstNum), 16, 125, row);
newhole(libName, instLett+(firstNum+1), 16, 150, row);
newhole(libName, instLett+(firstNum+2), 16, 175, row);
}
}
row("holeMC", "h", false, 1, 50);
row("holeMC", "h", false, 4, 75);
row("holeMC", "h", true, 7, 100);
row("holeMC", "h", true, 14, 125);
row("holeMC", "h", true, 21, 150);
row("holeMC", "h", false, 28, 175);
row("holeMC", "h", false, 31, 200);
row("pegMC", "p", false, 1, 50);
row("pegMC", "p", false, 4, 75);
row("pegMC", "p", true, 7, 100);
row("pegMC", "p", true, 14, 125);
row("pegMC", "p", true, 21, 150);
row("pegMC", "p", false, 28, 175);
row("pegMC", "p", false, 31, 200);
unloadMovie("p17");
attachMovie("pegMC", "dragPeg", getNextHighestDepth());
this.dragPeg._x = 0;
this.dragPeg._y = 0;
this.dragPeg._width = 16;
this.dragPeg._height = 16;
this.dragPeg._alpha = 0;
Creating An Arcade Game
hi, im looking to find a tutorial on how to create an arcade style game in flash. I saw a turtorial on here but lost it. Need something that shows how to switch between movie clips using keyboard keys so that the character can punch and crouch. thanks!!!!!
Trouble Creating A Game
ok, hi, here's the thing... i'm having a LOT of trouble with actionscript...
what im doin is the following... a room, with a lot of ojects, on the side there's like a menu, which contains a "random" list of objects available in this room.
so far, i've made the objects in the room as buttons, and changed the cursor whenthe game is played so the the cursor wont give away where the objects are located.
to the point now... my problem's' are...
1. i want to make a connection between the button (object in the room) with the name of the object on the list.
2. when this object is clicked... i want it to kinda enlarge and then dissapear.
3. i want the list of objects to be random every time the game is opened.
well.. i know i asked for a lot... but seriously.. ive been lookin everywhere... and i cant catch a break at all... i really hope some1 here will be able to help me with any of these problems...
thanks...
Natalie
Help Creating Peg Solitaire Game
I'm creating a peg solitaire game (ie.http://www.bannerblog.com.au/2007/05/peg_solitaire.php)
I have the stage all set, I'm just sitting here scratching my head on how to make it work.
Here's my code:
Code:
function newhole(libName, instName, size, xpos, ypos) {
attachMovie(libName, instName, getNextHighestDepth());
this[instName]._width = size;
this[instName]._height = size;
this[instName]._x = xpos;
this[instName]._y = ypos;
}
function row(libName, instLett, maxrow:Boolean, firstNum:Number, row:Number) {
if (maxrow == true) {
newhole(libName, instLett+(firstNum), 16, 75, row);
newhole(libName, instLett+(firstNum+1), 16, 100, row);
newhole(libName, instLett+(firstNum+2), 16, 125, row);
newhole(libName, instLett+(firstNum+3), 16, 150, row);
newhole(libName, instLett+(firstNum+4), 16, 175, row);
newhole(libName, instLett+(firstNum+5), 16, 200, row);
newhole(libName, instLett+(firstNum+6), 16, 225, row);
} else if (maxrow == false) {
newhole(libName, instLett+(firstNum), 16, 125, row);
newhole(libName, instLett+(firstNum+1), 16, 150, row);
newhole(libName, instLett+(firstNum+2), 16, 175, row);
}
}
row("holeMC", "h", false, 1, 50);
row("holeMC", "h", false, 4, 75);
row("holeMC", "h", true, 7, 100);
row("holeMC", "h", true, 14, 125);
row("holeMC", "h", true, 21, 150);
row("holeMC", "h", false, 28, 175);
row("holeMC", "h", false, 31, 200);
row("pegMC", "p", false, 1, 50);
row("pegMC", "p", false, 4, 75);
row("pegMC", "p", true, 7, 100);
row("pegMC", "p", true, 14, 125);
row("pegMC", "p", true, 21, 150);
row("pegMC", "p", false, 28, 175);
row("pegMC", "p", false, 31, 200);
unloadMovie("p17");
attachMovie("pegMC", "dragPeg", getNextHighestDepth());
this.dragPeg._x = 0;
this.dragPeg._y = 0;
this.dragPeg._width = 16;
this.dragPeg._height = 16;
this.dragPeg._alpha = 0;
Problems With A Game I Am Creating
I am currently making a galaga style game in AS 3.0 and am having a few problems. I am currently working on the player ships functionality and am having some issues with the shooting of the weapon. When the player holds the down the shoot button (space bar) the bullts just stay in place and continue to create so if the player were to move the ship they could create a line of bullets to destroy everything. How would I go about making it so that the when the space bar is held it only makes one bullet or has a steady rate of fire?
Here is my AS file.
Creating Simon Says The Game
I need help in creating simon says the game. Is there a tutorial that could explain about having multiple arrays that will light up the shapes and re-records when they are hit by player?
thanks,
jav
Creating A Game Timer
hey guys! I have already looked for a tut here and other places and i still can't find what im after.
Im creating a game when they start the game a timer begins, when they finish the game, the timer stops and the time is displayed in minutes and seconds it took to complete the game. ( i don't want it to countdown ).
I don't think this is very hard but i cant get it to work. I've tried the get Timer function but i was unsuccessful. Can someone please help me?
Thanks guys.
Creating A Board Game
I'm making a "board game" in Flash with Actionscript 3.0. When the player lands on a certain space, I want a window to pop up & they complete a word search game. The faster they complete the word search, the more points they would earn. I already have it working so that the word search swf pops up at the right time, but I'm not sure how to grab the time they completed the game in & send it back to the main movie. I got the word search code from here: http://www.subtangent.com/flash/ and it's written in Actionsript 2.0. Is it still possible to use both together? If so, how can I send the time back to my main movie to figure out their score?
Thanks,
DDR Game Creating Question
When i make the arrows come up to the spot and ur suppose to tap the arrow but when you hold the arrow it will rack up the points because i made it add 5 on the left arrow but when u hold it adds alot. How do i make it so when the tap it more than once it doesn't keep adding points it disables that. I will greatly apprectave any help i can get. Tnkz
Creating A Soduko-game
Hi ! Im trying to create a Soduko-game.
The graphics aint the problem...
The problem is the code, the functionallity to set up a soduko board.
I've tried many things but i cant get a simple solution...
Soduko is a game with 9*9 squares. In each row the numbers 1-9 should be entered and may only appear once in each row. The same for the columns.
Also in 3*3 squares (9 of them..) the numbers 1-9 should appear once...
How can i do this programatically? Ive tried to randomize numbers in a matrix 9*9 and while the number is randomized, check if it i exists in the row, col or 3*3 square, if it does, it should be changed...But this wont work....
Any ideas?
Creating A PLatform Game
hi i was wondring. i'm looking at the tute creating a platform game in kirupa. but i don't know how to get the char back to the start when he dies could someone help?
Help Creating Peg Solitaire Game
I'm creating a peg solitaire game (ie.http://www.bannerblog.com.au/2007/05/peg_solitaire.php)
I have the stage all set, I'm just sitting here scratching my head on how to make it work.
Here's my code:
Code:
function newhole(libName, instName, size, xpos, ypos) {
attachMovie(libName, instName, getNextHighestDepth());
this[instName]._width = size;
this[instName]._height = size;
this[instName]._x = xpos;
this[instName]._y = ypos;
}
function row(libName, instLett, maxrow:Boolean, firstNum:Number, row:Number) {
if (maxrow == true) {
newhole(libName, instLett+(firstNum), 16, 75, row);
newhole(libName, instLett+(firstNum+1), 16, 100, row);
newhole(libName, instLett+(firstNum+2), 16, 125, row);
newhole(libName, instLett+(firstNum+3), 16, 150, row);
newhole(libName, instLett+(firstNum+4), 16, 175, row);
newhole(libName, instLett+(firstNum+5), 16, 200, row);
newhole(libName, instLett+(firstNum+6), 16, 225, row);
} else if (maxrow == false) {
newhole(libName, instLett+(firstNum), 16, 125, row);
newhole(libName, instLett+(firstNum+1), 16, 150, row);
newhole(libName, instLett+(firstNum+2), 16, 175, row);
}
}
row("holeMC", "h", false, 1, 50);
row("holeMC", "h", false, 4, 75);
row("holeMC", "h", true, 7, 100);
row("holeMC", "h", true, 14, 125);
row("holeMC", "h", true, 21, 150);
row("holeMC", "h", false, 28, 175);
row("holeMC", "h", false, 31, 200);
row("pegMC", "p", false, 1, 50);
row("pegMC", "p", false, 4, 75);
row("pegMC", "p", true, 7, 100);
row("pegMC", "p", true, 14, 125);
row("pegMC", "p", true, 21, 150);
row("pegMC", "p", false, 28, 175);
row("pegMC", "p", false, 31, 200);
unloadMovie("p17");
attachMovie("pegMC", "dragPeg", getNextHighestDepth());
this.dragPeg._x = 0;
this.dragPeg._y = 0;
this.dragPeg._width = 16;
this.dragPeg._height = 16;
this.dragPeg._alpha = 0;
Help Creating A Colouring Game
Hi,
Can anyone point me in the direction of some colouring in tutorials for flash 5?
ie. like the ones seen on kids site like bob the builder and shrek where you click a colour and then apply it to an image.
Thanks in advance,
eve.
Creating A Platform Game
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
else if (Key.isDown(Key.SPACE)) {
if (_root.gotgun == true && !_root.shooting) {
_root.attachMovie("bullet", "bulleter", 1, {_x:_root.char._x, _y:_root.char._y-25});
_root.shooting = true;
with (_root.bulleter) {
onEnterFrame = function () {
if (_root.timer>_root.maxshoottime) {
_root.shooting = false;
unloadMovie(this);
}
_root.timer++;
_x += _root.mvsp;
};
}
attacking = true;
speed = 0;
this.gotoAndStop("shoot");
}
// for some reason the code flash player stops reading here and does not read the else??? why
}
else if (speed<1 && speed>-1 && !attacking) {
speed = 0;
this.gotoAndStop("idle");
}
origenal here
http://www.kirupa.com/developer/mx20...tform_game.htm
can provide my file to
[help] Creating A Game And StartDrag?
Hi. I'm busy creating a game in flash.
I have a game screen (where all the 'action' takes place) and then I have a 'sidebar' where there are buttons that the player can click on.
The problem I have is that I'm using a "startDrag" to move a character around the screen. But when the user moves the mouse over the 'sidebar' you cant click on the buttons. I somehow need to have it so that the StartDrag works inside the "game area" but stops working when your move moves to the 'sidebar' where the buttons are.
Is this possible? I tried using a a rollover thing and stopDrag, but it didn't work. What should I be doing?
I would really appreciate any help, as I'm so puzzled by this.
Game Creating In Flash Mx 204 Pro
hi!...im kind of newbie in flash...but i wondered if osme guys here could send me some tips about how to create a flash game just a little similiar to this (clikc the url)
http://newschoolers.com/qphitv2.swf
my e-mail is espenrisan12@hotmail.com
it would be awesome helpful and nice of you...thx
Creating A Game In Flash
hey everyone, im trying to create a side scrolling game(plaform) in flash.. just a simple character which can walk back and forwards, and jump and perform a moveor shoot a weapon etc...
can anyone give me any tutorials, help or resources, on how to do this??
thanks, dan..
Creating Realistic Movement For A Game
hi, I was recently messing around with an idea for a game, in which I need the user to be able to control a ship freely around the screen. I basically created a movie clip of the ship I wanted to move and attatched a piece of code which controls the _x and _y and _rotation properties depending on which direction (the _rotation property) the movie clip is currently pointed. B4 I go any further an example of what I mean plus the code is at http://homepage.eircom.net/~cp3/Movie12.html
I basically have 4 main if statements to determine if the _rotation property is between 0 and 90, between 90 and 180, between 0 and -90, or between -90 and -180 and within these 4 if statements I have 9 more if statments which determine the exact value of _rotation and set _x and _y += or -= to set values to give the impression the ship is moving off in that direction. Anyway my question is this, this code works fine but it seems a bit sloppy and long (over 40 if statments are checked every frame) is there a more efficient way coding this effect? I hope I didnt ramble too much and that someone gets what I mean, anyway thanks in advance for any help offered
Beedge
Creating A Flash Game For Kids
hi,
i am working on a project, in which i have to create a flash game for kids, my project is to allow kids to place pictures onto their correct words or names.
For example, there are about five pictures in one row, one is a Man Face, a Woman Face, an egg and an elephant face. And on the other coloum we have their [articular names. Now we want kids to place pictures on to their correct words.
I need to know how it can be possible in Flash ?? I mean i am sure that this can be easily happen but how ?? Also i am not much expert in Flash Scripting and therefore i need your comments and suggestions or guides.
An example file has been attached with this post.
Awaiting for someone's advices.
Thanks,
Amir
Memory Card Game _ Need Some Help With Creating It
Hello Guys & Gals,
I had a tutorial I was using quite a while back to create a 'memoy card' game- You know- clcik a card it turns over-- you try to match that image with the same image on another card which then eliminates the pair- etc... until you have them all matched!
I know...simple game! Well... I am new to designing any game in Flash--so I am making a simple memory game for a kids site.
Is Anyone out there able to assess what is wrong with my code to this point?
It seems to add too many cards--and it doesn't match up an equal amount of paired graphics- it always seems like when you get to near the end- there is like 4 cards left- each with a different image on it that doesnt match any others!
If anyone can help- or direct me to some help that would be AWESOME!!
Thanks...I will include the code with this post...
Thanks in advance!
Creating A Game; Interactivity Problem
Hi guys, i'm pretty new to Actionscript and flash, only had experience with more 'regular forms' of programming. Was wondering if you could help me out with a huge problem i've got:
I'm creating a tile based world with a main character that you control using the keyboard (Up Down left right etc), this i have managed to recreate using tutorials, i also want it to be 'aiming' at where the mouse is, So i have tried to implement another tutorials piece of code to also get it rotating.
The problem is it simply outright refuses to work when i try and combine the two together. I know obviously i've messed up bigtime, but i don't exactly know where to start. I am unable to actually make sense of what is going on in my rather bizarre hashup of a creation. I know its probably because its copied from tutorials and not exactly layered very well, but I don't have anyone who can talk me through creating the thing from the start, the books i have have given me an understanding on the mathematics and purpose of the code itself, but not what is exactly going on in flash .
the game i'm working on can be found here:
http://homepage.ntlworld.com/giles.c...flash/game.swf
and the code
http://homepage.ntlworld.com/giles.c...flash/game.fla
If anyone could be so kind and take a few moments to browse my disaster, it'd be seriously appreciated, i'm ripping my hair out trying to figure out how to get the bloody thing rotating and firing.
Thanks-
Ben.
p.s- The code i'm trying to implement is at the bottom, commented out, as part of the actions of frame 15.
Problems With Creating Inventory For A Game
With the help of a more actionscript literate friend I have created a simple inventory window. That is, a movieclip with an invisible button overlaid, which when clicked leads to the inventory window opening. I'm now stuck on a way to move an item somewhere else in my game to the inventory window, once clicked on. One way I tried was to create a movieclip in my inventory window. The first frame is invisible, the second is an icon of the inventory item, and the third an enlarged version of the item. When the actual item is clicked on in another location( it is a movieclip designed to disappear once clicked, with an invisible button overlaid), i added actionscript that, on release, it should go into _root, then my inventory movieclip (called invent) then the item movieclip (called paper1)
the coding for the button is thus:
on (release) { gotoAndStop (2);
this._parent.invent.paper1.gotoAndStop(2);
}
have tried both relative and absolute targeting, neither works
I've gone through this many times and the item just does not appear in the inventory window, any hel pwould be much appreciated!!
Creating A Mario Type Game (Help)
my character moves as a movie clip and looks decent, it jumps well, the only thing is i have no idea how to code a platform so that he doesn't fall through, any know how?
Creating A Jeopardy Type Game
I'm a scripting newbie, and I want to create a jeopardy type game so I can learn a/s and improve my skills and really learn flash's capabilities. I just don't know where to begin.
I've looked at examples of existing games on flash kit, but I don't want to use xml/text files because my multiple choice questions will have needs that xml will limit me on (such as text length, multiple options etc). I'm thinking of just having the questions on different frames of the movies.
I know I've got to dive in the water now, but I would love to see a tutorial/example that would help me get going.
Does anyone know of a tutorial/book that would help me?
Thanks for any guidance you can give me.
BTW, I'm using Flash 8.
Creating An ONLINE Flash Game
Hi,
How complicated would this be? and is there an .fla or a tutorial i can use to accomplish this?
I want to create a basic online flash game all it is. is when someone gets to the site , it adds a dot on the screen and the user can move that dot around, and if someone else enters the site , a new dot appears so now both dots are on the screen and both users can control their dots.
[MX] Creating Monsters In A Platform Game?
ok so i have a pretty good start a platform game. but before i start creating the whole first level i want to know how i can add in some enemies and i want to know if i can make it sorta like mario and jump on their heads. if not thats fine i can deal with a simple shooting them, thats fine.
i will attach my .fla so you guys can take a look
i have not created a enemy MC yet but i will soon
he will be called "monster"
but here is my code so far:
PHP Code:
onClipEvent(KeyUp){
gotoAndStop(1);
}
onClipEvent (load) {
speed = 7;
isJumping = false;
isFalling = false;
gravity = 7;
jumpAmt = 12;
gotoAndStop(1)
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_root.ground._x -= speed;
_root.bg._x -= speed;
Play();
setProperty ("_root.char", _xscale, 100);
} else if (Key.isDown(Key.LEFT)) {
_root.ground._x += speed;
_root.bg._x += speed;
Play();
setProperty ("_root.char", _xscale, -100);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
if (!isJumping) {
jumpAmt = 12;
}
if (Key.isDown(Key.SPACE) && !isJumping) {
isJumping = true;
}
} else {
if (isJumping && jumpAmt <= 1) {
isJumping = false;
isFalling = true;
_y += gravity;
} else if (!isJumping) {
isFalling = true;
_y += gravity;
}
}
if (isJumping) {
_y -= jumpAmt;
jumpAmt -= 0.5;
}
}
Creating Password System For A Game
Hey guys,
I have an interesting problem I need some help with.
I have a game with different levels and I want a password system so that the player can continue from their last level during different sessions.
The password would be a string and would be unique to each level.
The game also has 3 difficulty levels.
The catch is that levels will be added dynamicly from an xml file, so the number of levels is not fixed.
My idea was to have 100 numbers for example for 100 distinct levels and 100 possible passwords.
EASY 0 - 9
MED 10 - 49
HARD 50 - 99
Initialy there will only be 5 levels per diificulty.
This way I have a maxium of 10 levels for EASY, 40 for MED and 50 for HARD which is enough.
If the player enters a password for a level that doesn't exist yet the game checks the database to see if it exists so it's not a problem.
So now i need to generate 100 passwords(5 chars from A-Z) for 100 unique levels.
Any ideas?
I guess i would need a function
level -> pass_string
pass_string -> level
Could someone point me in the right direction? Discuss different ways of going about it? Any Ideas?
Hope this make sense!
thanks
Creating A Random Race Game...
Hi all,
I'm new to the forum and am so glad that I found it. I wanted to see if anyone knew of a tutorial to make a race game that would randomly generate outcomes. For example, I thought about a horse race that simply has a play button. Once you hit play, each time it will randomly let one of them win. At the conclusion, there is a replay option. Any ideas? Thanks in advance!
Alan
Creating A Crossword Game Engine
hi,
I'm lookling out for an algorithm for creating a crossword game engine which will have all the features
1) Dynamic wordlist using XML/PHP and Flash
2) Scrore generation/storing/highscore and storing of game (PHP/MySQL/IIS)
can anyone help me out how to go about this. Its an urgent one for me.Any useful links in this regards will be very much helpful for me.
thanks in advance
cheers
sai
saikiranmadhavan@yahoo.com
Creating A Barrier For A Racing Game
Does anyone have a solutions for forcing a car to stay within a set barrier while the road moves. Please note that the car only moves left and right and I want the car to not be allow to drive of the side of the road or hit buildings. Or more precisely confined to a strict 4 lane avenue. Any quick advise with simplified solution. Working in Flash 8.
Thanks in advance
Problem With Creating A Platform Game Tut.
I am using flash 8 and im having a porblem with the Creating a Platform Game tut.
I got to the part where the char code is:
Code:
onClipEvent (load) { jumping = true; speed = 0; maxmove = 15; jump = 0;} onClipEvent (enterFrame) { if (_root.dead) { this.gotoAndStop("dead");} else { speed *= .85; if (dir == "right") { if (speed>0) { dir = "right";} else if (speed<0) { dir = "left";} if (dir == "right"){ this._x += speed; _root._x -= speed;} if (dir == "left") { this._x += speed; _root._x -= speed;} if (Key.isDown(Key.LEFT)) { if (speed>-maxmove) { speed--;} this.gotoAndStop("run"); this._xscale = -100;} else if (Key.isDown(Key.RIGHT)) { if (speed<maxmove) { speed++;} this._xscale = 100; this.gotoAndStop("run");} else if (speed<1 && speed>-1) { speed = 0; this.gotoAndStop("idle");} if (Key.isDown(Key.UP) && !jumping) { jumping = true;} if (jumping) { this.gotoAndStop("jump"); this._y -= jump; jump -= .5; if (jump<0) { falling = true;} if (jump<-15) { jump = -15;}} if (_root.ground.hitTest(this._x, this._y, true) && falling) { jump = 12; jumping = false; falling = false;}}}
And that makes it so none of the controls work.
What is the problem here? <img>
Creating An ONLINE Flash Game
Hi,
How complicated would this be? and is there an .fla or a tutorial i can use to accomplish this?
I want to create a basic online flash game all it is. is when someone gets to the site , it adds a dot on the screen and the user can move that dot around, and if someone else enters the site , a new dot appears so now both dots are on the screen and both users can control their dots.
Thanks
Creating A Maze (children's Game)
Hello,
Does anyone know of any good resources for creating a maze in flash. I'm about to embark on that & don't feel the need to reinvent the wheel... :) Any leads on code/good examples would be greatly appreciated!!!!
-Jessica
Algorithm For Creating A Crossword Game Engine
hi,
I'm lookling out for an algorithm for creating a crossword game engine which will have all the features
1) Dynamic wordlist using XML/PHP and Flash
2) Scrore generation/storing/highscore and storing of game (PHP/MySQL/IIS)
can anyone help me out how to go about this. Its an urgent one for me.Any useful links in this regards will be very much helpful for me.
thanks in advance
cheers
sai
saikiranmadhavan@yahoo.com
Creating A Word-based Guessing Game
Hi...
I'm currently producing a experimental flash project, which involves both comic-book style imagery, animation and puzzle-solving whereby the user must solve a riddle in order to progress through the story. Of course, the whole project involves one bit of Actionscript 2 on each page in order to get it to work but so far I've only been able to find code for a guessing game with numbers.
The following code is how I've tried to handle this: I'm fairly new to Actionscript so please forgive me! I've attached this code to my "answer_btn" button. "Input" refers to the input textbox in which the correct answer must be typed.
Thanks for your help!
Attach Code
//this code examines what the player has written in the
//input box and marks it as right or wrong.
on (release) {
if (input:String == "story"))
{
(_parent.gotoAndPlay ("riddle_story"));
}
}
Question About Creating A Traditional Board Game With
I'm creating a classic board game (i.e. monopoly, sorry, mouse trap) where the users will move based on the random result of a roll of dice. The board has 100 squares that the piece can land on.
What's the best way to give all 100 squares a value so that I can take the current value of the player piece (movieclip) and add the result of the dice roll?
Thanks in advance for your assistance.
Note: I'm developing this game for Flash Lite.
Creating A Retro Flash Game - Help Required
HI fellas,
Rather broad request for help here, but i've missed 70% of classes due to lung problems so far so need to do some heavy catching up.
As per the pic below, i'm doin a retro styled game. Set frame "animation", etc. As you can see, 90% of the frames are visible (still gotta do one more of the woman etc).
Basically the woman throws one of 7 different items (3 deduct life, 3 add points, and the other adds life) down, and you (the husband) must catch them.
Or let them fall and smash on their 5th frame, if they are a bad item.
However, as it isn't a static "drop down" animation for the items, i've no idea how to code it so that a random mc from an array is selected, (ie, far left, middle, right etc), let alone to attach a random item (to a dummy mc within the mc?) when it is generated.
Making the task more difficult, if the husband (these will be different items, so imagine the bags are pianos, cats, swords etc) is under the item at its 4th frame, he will catch it, and be able to move to the right, to pass it to the squirrel, so you can make him place it in the tree; at which point the score is increased. And whatever item he catches, will need to be carried as is to teh squirrel and up the tree. I assume its a simple case of attaching the generated movieclip to a dummy mc within the husband, after detaching it from the stage.
Meanwhile, the woman will throw items continually at a reasonable set interval.
After i've been given the award for vaguest "question" of the year, if anyone could steer me in a somewhat correct direction for this, it would be fantastico! Tutorials, examples, its all good.
Any more questions, just shoot.
thanks guys,
Oli-G
Help Creating A Platform Game Tutorial NOT WORKING
I did the basic movement code and it was working fine, but i dont understand how to do the gravity and jumping. it says:
Gravity and Jumping
Next up we need jumping. This code will give you jumping; it would be inserted after the other key.isDown events
i copied the code and did it in my char but when i test it, it says there are 3 errors!
Tell me how do i have to do the code so it wont say errors!
Creating A Matching Pairs Game In Flash5
I want to create a matching pairs card game within flash.
I have found actionscript for a matching pairs game but it does not work the way i want it to. I would like to be able to match a Picture with a word as opposed to 2 pictures the same.
If anybody knows how to do this or knows any excellent websites that have tutorials for writing actionscript for games, please reply.
cheers!
Memory Style Game - Creating Tile Blocker
I have sample code written like this:
(from "Flash MX 2004:Game Programming" by Murray and Everett-CHurch)
Referencing a memory style game using only 16 tiles. The author notes that they can use the 100 because they are only using 16 tiles.
attachMovie("tile blocker", "blocker"+i+j, tile_depth+100);
blocker_array[i][j] = this ["blocker" +i+j];
He states to organize the tiles into 'Empty Movie Clips" so their depths will be local?
I am not clear on how this would look. I am hoping to create a multilple level memory-style game with at least 20 (or up to 32) tiles per level.
How do I remedy the 100 statement?
Please suggest a reference (and I'll research more) or post a helpful hint
I am looking to learn this better, so I am willing to do a little more leg work -just not certain where to begin to narrow my search and avoid more information than I am ready for.
Thank you
Creating A Scrolling Background From The Horizon (like The Old 'outrun' Game)
hya everyone,
i've been desperately trying to find a tutorial or any kind of head start on how to this.
do you have any idea how to make an animation of a looping road cycle? so it looks like the horizon bit of the road is constantly coming at you but actually its the same piece of animation looping?
the reason being is that i want to have a character with a walk cycle, but he will walk on one spot... and that way i can animate the road coming from the horizon at the character and make it look like he's walking without him getting far from the camera...?
i hope this makes sense and i havent just confused eveyrone.
[cs3] Creating A Basic Flash Platform Game, Part 1
Creating a basic Flash platform game, part 1
In this tutorial you will be making:
-A main character
-Terrain
TERRAIN
1.Draw your terrain. For this you should probably use a straight, horizontal line.
2.Convert your line into a movie clip.
3.Name it “terrain” (no quotes).
MAIN CHARACTER/AVATAR
1.Draw the body of your character (no legs or arms yet, and no head if you want it animated).
2.Convert it to a movie clip.
3.Name it “man” (no quotes).
4.Double click on the character to edit.
5.Insert the action stop(); on the first frame.
6.Use the next few frames to animate your character walking.
7.Double click on the background to deselect the character.
8.Add these codes to the character.
onClipEvent (load) {
gravity = 0.2; yspeed = 0; xspeed = 1; jumping = 0;
}
onClipEvent (enterFrame) {
if (_root.go) {
if (Key.isDown(Key.LEFT)) {
if (!_root.terrain.hitTest(_x-_width/2, _y+_height/4, true)) {
_x -= xspeed;
}
} if (Key.isDown(Key.RIGHT)) {
if (!_root.terrain.hitTest(_x+_width/2, _y+_height/4, true)) {
_x += xspeed;
}
}if((Key.isDown(Key.UP))(!jumping)){
yspeed = -5; jumping = 1;
} yspeed += gravity; while (_root.terrain.hitTest(_x, _y+_height/2, true)) {
_y--; yspeed = 0; jumping = 0;
} if ((!_root.terrain.hitTest(_x, _y+_height/2+1, true)) or (yspeed<0)) {
_y += yspeed;
} else {
yspeed = 0; jumping = 0;
}
}
} onClipEvent (load) {
scale = _xscale;
} onClipEvent (enterFrame) {
if (key.isdown(key.right)) {
this._x += 10; _xscale = scale; play();
} if (key.isdown(key.left)) {
this._x -= 10; _xscale = -scale; play();
}
}
Any Tips Or Tutorials For Creating A Board Game In Flash
I'm creating board game in flash. Does anyon e know of any good tutorials to jumpstart my project.
The game will be simple, click to roll the dice and the players piece moves a set amount of spaces.
Thanks in advance for your assitance.
Creating Flash Board Game (Multiplayer Online)
Hi,
Right now i am doing on a project on Chinese Checkers which have 2 players, 3 players, 4 players, 6 players. I used SQL Server as database. game programmed in AS3, and i used web services to connect them. I used Timers to get data Consistently as Web services does not support data push like flash remoting. Due to budget issue, i have to use web service in my project for educational learning.
I have created game lobby in flash, where user can chat, see whose online, and create or join game. One main question: Can i do all of them in frames without using external actionscript files?like coding in first frame.
1st swf: Game Lobby --> press create button --> 2nd swf: Game Create Border -->3rd swf: Press 2 , 3 ,4 or 6 players button -> 4th swf: Game.
|