ActionScript 2.0 :: [MX04] Make A 3rd Person Chase Game?

Jan 25, 2009

I'm trying to make a 3rd person chase game. An issue I'm coming across that I would like to get some advice on is the AS I'm using for the walls.First off, here's the code for the character:

PHP Code:

onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
_root.blue_xaccel=_root.blue_xaccel-1;

[code]....

The whole idea behind this is to create a sort of acceleration. Now, when the player hits a wall, it's supposed to stop him.

Wall code:

PHP Code:

onClipEvent(enterFrame)
{
if(this.hitTest(_root.blueguy))

[code]....

Now, the code does what it's supposed to. This is a left wall. It stops the guy, and even pushes him back to the right. However, if the guy has some acceleration going toward to wall, he can go through it a bit.Example: The character is traveling at 8 pixels, but only three pixels away from the wall. In the next frame, he will move 8 pixels, and be 5 frames into the wall.

View 2 Replies


Similar Posts:


ActionScript 2.0 ::make A Third-person Shooter Game - "hide" Clip Does Not Receive Any Commands From The Enemy Clip?

Feb 19, 2005

im trying to make a third-person shooter game similiar to those "hide" when you press Down and "attack mode" when you stand Up, sort of like Time Crisis.I've done first person shooter games before.The hero character's move clip contains three clips, one of him in hiding, one in attack mode, and the last being hit. How do I script it such that the "hide" clip does not receive any commands from the enemy clip (which tells the hero clip to advance to "hit" clip and lose a health").

View 3 Replies

ActionScript 3.0 :: Making A Game Character Run Like An Actual Person?

Sep 18, 2009

just wondering if anyone can help me with this I'm making a platform game and wanted to make my game character run when user press the keyboard left or right. But I want my character to run like an actual person instead of just sliding across the screen. I have no idea where to start and I can only find tutorial that teach how to make a character move by just using - or + number of pixels but that's not what I'm actually looking for. I prefer that my game character to be more lively. Does anyone know how??

View 2 Replies

ActionScript 2.0 :: MX04 Falling Items Game?

Apr 27, 2009

Ok I want to create a falling items game, but how do you code the falling movie clips? sorta like catch the money, or something like that.

View 6 Replies

MX04 Creating Simple Flash Game

Sep 8, 2009

I'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

ActionScript 2.0 :: Make An Interactive First-person Novel

Jul 8, 2009

I'm rather unfamiliar with Actionscript (up untill now, I've only made simple Flash animatons).I would really like to make a visual novel type of game (it's a game much like the Phoenix Wright games, minus the court scene parts of the game).

View 2 Replies

ActionScript 2.0 :: Make The Person Shoot When Press The Spacebar?

Mar 16, 2005

I havent used flash in years and I wanted to make a game. Ive made a few before but i didnt ever finish them and now i dont have them anymore. I wanna make this game where you are this man that can move around. (i can remember how to do that) and you shoot these huge exploding cats. How do i make the person shoot when you press the spacebar?How do i make the barrel of the gun follow the mouse and the bullets shoot that way?

View 10 Replies

MX04 - Make A Button Load A Movie Clip

Jun 7, 2010

I am starting off by creating a very very basic flash document, with about 10 frames in it, just to get myself used to controls etc. i have got my buttons working to go from one frame to the next, and i am now wondering how to make a button load a movie clip, the movie clip is actually just a circle i drew and converted, but i would like this to be invisible, and then to load, or "play" when a button called "1" is clicked

View 4 Replies

ActionScript 2.0 :: Set Boundaries On A Slow Chase Mouse Follower?

Sep 4, 2004

Does anyone know how to set boundaries on a slow chase mouse follower. Attached is the fla im trying to set boundries to. The ball should not go past the red lines.

I have used the following code:

Code:

onClipEvent (load) {
_y = 0;
speed = 5;

[Code]....

View 2 Replies

ActionScript 2.0 :: MX04 : Make A Dual Key Press Perform A Single Action?

Feb 1, 2010

im trying to make a game that requires you to have the spacebar and the right arrow key pressed to make the character move. However i just cant seem to link the 2 key presses together. when the keys are pressed individually it works and when theyre pressed together it works but i want the character to be inactive until both are down at the same time :/

i've tried everything that i can think of (which is kinda limited) i thought id cracked it with a 'while' statement but when i tested it flash would throw a fit and close heres the code that flash doesnt like, it looks (to me) like it should work but it clearly doesnt :P

PHP Code:

onClipEvent (load) {
_x = 0;
_y = 0;
}

[code]....

View 2 Replies

ActionScript 2.0 :: MX04 To Make The Mouse Cursor Start At A Specific Coordinate Upon Enterig A Scene?

Jun 6, 2010

I'm trying to make a game of sorts. I have a button that you need to click that is in the center of the screen. Upon clicking it, it goes to the next scene.What I need here is for the mouse cursor to start in the upper right-hand corner of the stage of the second scene whenever said button is clicked. Not just a movieclip of a cursor, but the actual mouse itself, since it needs to be able to click a button on the other side.Below I've included an example of what needs to be done (not my actual game, but it shows the problem that I'm having. IT IS AN MX2004 FLA FILE.

View 3 Replies

ActionScript 3.0 :: Make A Game, And The Character Inside The Game Could Swim

Jun 13, 2009

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 Replies

Actionscript 3 :: Make A Game Tutorial Of Flash Game?

Apr 1, 2011

how to make a game tutorial as farmville game tutorial to teach the user to play the game. i have recently involve in make that kind of game tutorial for its user by actionscript 3

View 1 Replies

ActionScript 3.0 :: Make The Character In Flash Game Make A Jump When The Player Presses A Key?

Dec 19, 2009

i 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 Replies

ActionScript 3.0 :: Getting One Sprite To "chase" Another?

Aug 24, 2009

I have ghost sprites in a haunted house which roam at random. If the player comes within a certain distance, they pursue him. Right now the ghosts jump in the direction of their target in 15 pixel increments based on the difference between ghost.x/y & pc.x/y.Is there an elegant way to have the ghost sprite drift towards player's sprite?

View 2 Replies

Person Against A White Background?

Sep 14, 2009

if you go to [URL] they've got this animation on the home page where some guy in tie walks into frame surrounded by nothing by empty white.. how do you do that? Film against a white background?

View 1 Replies

ActionScript 3.0 :: XML Document - Using For Loop To Tag Person

Jul 20, 2011

If I have a xml document as such
<people><person>
<name>person</name>
</person><person>
<name>person1</name>
</person><people>
and so on...
How would I go through this?

Currently I am doing something like:
set.name = info.person.name[0];
set.name = info.person.name[1];
How would I use a for loop to go through and do the same thing for any amount of person tags?

View 7 Replies

ActionScript 2.0 :: Where Does A Sane Person Put Their Extensions

Feb 7, 2007

I am using Flash 8, AS2. I have a nice code library called the Fisix Engine. Within the unzipped folder is the subfolder 'Bin' and within is an empty folder named 'generated' and FisixEngine, a seemingly non-editable 'Flash Component File'. At the moment, this Flash Component File rests in C:Program FilesMacromediaFlash 8FisixEngine_Alpha_0.5Bin ... but where is it supposed to go? I have heard that it doesn't matter where. In that case, what is the best practice?

EDIT: For that matter, I cannot even seem to get this component file to be listed in my components browser no matter what I do with it. Furthermore, the examples included #include files which appear to be HTML files instead of .as files. This confuses me very much... What's the fastest way to organize this so that I can make instances of the custom classes included in the component?

View 4 Replies

ActionScript 3.0 :: Allows A Person To Select A Way To Display Grades?

Apr 23, 2010

I am trying to create this program that allows a person to select a way to display grades, either through level or alphabetically and for some reason i am getting an error with my percentageToLevel method. here is the code:

[Code]...

View 4 Replies

ActionScript 2.0 :: Flash8 Can't Get Person To Follow Mouse Using _rotation

Jun 3, 2010

So far i have done:

[Code]....

Which is currently very glitchy it will not look at the mouse directly instead it will just continuosly rotate trying to find it, is there any way to fix this? The game... I have tried several different methods... Is it because it does not know how to face the mouse and what part of him to use to face it, if so how can i fix it?

View 3 Replies

Action Script 2 :: Edit The Url Link To One Of The .fla That Was Created By Another Person?

Mar 4, 2012

I need to edit the url link to one of the .fla that was created by another person.I know normally you would just go to action, and then there would be action script like getURL (" "). However, in this case, I looked through the everything in the action script panel, still couldn't find the url actionscript. i know it's there because when i exported the flash to swf, the url is working.

View 2 Replies

Flex :: Algorithm - How To Generate Person Based On Data

Aug 4, 2010

Based on user input height, weight, measurements and other data, dynamically generate a person (can produce 3D graphics)?

View 1 Replies

ActionScript 3.0 :: Dynamically Load Image For Each Person In Chart?

Jul 8, 2011

I have a company's organisational chart in flash where it loads in each person's name dynamically for their department and when you click on it it brings up their CV information such as name, qualifications etc. This is loaded into a dynamic text box. I can test it locally with an xml file and then switch back to the online version.[code]...

View 1 Replies

ActionScript 2.0 :: [MX]First Person Shooter - Use The Spacebar To Switch Between The Ones Being Viewed?

Apr 30, 2003

I have figured out how to duck out of enemy site. I need to know if i can have two layers running the same thing at the same time, but only one is viewed and you use the spacebar to switch between the ones being viewed. For example one layer is a person ducked behind a box and getting shot at and the other is a person standing in the open getting shot at, to switch from the ducked to the standing you have to use the spacebar. Is this possible?

View 3 Replies

ActionScript 3.0 :: Mute The Music When A Person Clicks On The Video?

Nov 25, 2010

[URL]

I have a small problem I want to mute the music when a person clicks on the video page so they dont have to manually click the speaker to shut the sound off to hear the video. As well when they leave the page I want the music to continue playing. The music does not have to start over again, I just want it to mute while on the video page.

I tried using this: SoundMixer.soundTransform = new SoundTransform(0);

But it even mutes the video sound.

And I tried this: SoundMixer.stopAll();

It does kill off the background music, but I dont know how to turn on the music again when you leave the video page.

I prefer to use: SoundMixer.soundTransform = new SoundTransform(0); as it is easier to work with and you can adjust the volume as you like.

The music script and the video script

This is my action script for the music:
// Assign The URL to the mp3 to play
var req:URLRequest = new URLRequest("101-jakatta-

[Code].....

View 14 Replies

ActionScript 1/2 :: Make A Car Game?

Apr 27, 2008

I am trying to make a car game, but my car movement is mucked up and I'm not sure why.It also needs brakes and acceleration.

View 7 Replies

How To Make A Flash Game

Sep 29, 2011

where to get some corresponding information of how to make a flash game.Preferably with some examples of little flash games

View 1 Replies

Make Big Game Run More Smoothly?

Feb 16, 2012

I am developing a ipad game using flash CS5. When I run it in flash or web browser, it run quite smoothly but when I published it into ipa file and run it on my own ipad, it became very very slow. Since my game has many stages and characters, the amount of symbols may up to more than 50. That makes the flash file more than 100mb (but the ipa is only 11mb) All of the symbols are exported in frame 1.

1)if I used preloader and exports the symbols in frame 2, will my game run more smoothly? is one preloader when the game is loaded enough? or it is need for every game scenes?

2)Is there any other technique that a big game developed in Flash has to follow in order can be run in low configurations devices?

3)Why many other big game can run so smoothly although it contains a lot more characters and background than mine?

View 3 Replies

Make A Game In Flash?

Feb 4, 2010

I have to make a game in flash, and this game is the equivalent of 'Millionair' tv-game, so it's not so complicated and I have to give a badget to my Client.

View 1 Replies

IDE :: Possible To Make An RTS Game In Flash

Jan 9, 2006

I was wondering if it were possible to make an RTS game in flash, and if it was, are there any tutorial on that?You know, like get the more cash than the enemy, buy guys with it, and kill the enemy first?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved