ActionScript 2.0 :: Make Something Stop When It Hits Another Thing?

Jan 7, 2004

I am wanting to make a game, and I need a gravity code that works great. I want gravity, a jumpibg code, and then a code to make something stop when it hits another thing.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Add A Small Explosion Like Thing When The Ball Hits The Yellow Circle?

May 4, 2010

just wondering how i can add a small explosion like thing when the ball hits the yellow circle, and not just a picture appearing on the hit (game attached, and using adobe Cs5)

View 2 Replies

ActionScript 3.0 :: Stop An Object When It Hits Another?

Nov 12, 2009

Im making a sort of maze game and have a ball that moves up, down, left and right when the corresponding arrow key is pressed. What I want to do now is introduce some walls, how do I make the ball stop moving when it touches a wall? (so it doesnt pass through the wall)

View 1 Replies

ActionScript 2.0 :: Collision - Character Shall Stop Movement If He Hits A Geometry

Aug 7, 2008

am pretty new to Kirupa and Flash. I have a little problem, concerning a character hitting a wall. What i have: a char that can jump and move around by the arrow keys. What i need: character shall stop movement if he hits a geometry. But being able to start movement again, besides through the geometry. I'd like to reach this with gskinners CheckForCollision class. Have a look here: [URl] But i didnt manage my code to get it work. So maybe you could leak me some information on how to get this done. Heres my code so far:

[Code]...

edit admits: so far i have a character mc called "player" and one called "level". i would apply the code to the player, and it would be cool to have the possibility to check collision of the player with multiple MCs, not only the level.

View 2 Replies

Make A Visitor Hits Counter Using Just AS2?

Jun 4, 2009

Is it possible to make a visitor hits counter using just AS2 ?

Or what is the other way to do this ?

The site is totally in flash only.

View 4 Replies

ActionScript 3.0 :: Make A Mix And Matching Thing For A Fashion Client?

Nov 16, 2010

create those mix and match things that you often see on those fashion websites (You would select what variety of clothing you would want by clicking through the different items until you get the combination that you want, and then submit that choice to the store). I heard that it can be easily done in flash and so I am asking if it can be done.

I have nothing made at the moment. I just want to be able to know what the heck the client was talking about before I send her a contract. It'd be really messy if I come off as a guy who doesn't know what he's doing.

View 3 Replies

ActionScript 2.0 :: Dynamically Make A Dotted Line Box Around Some Thing?

Jun 29, 2006

Im trying to dynamically make a dotted line box around some thing. Making the box is simple but and I make it dotted or do I have to make a lot of little lines. Im going for a selection box like look

View 2 Replies

ActionScript 3.0 :: Make It So When The Character Touches A Swirly Thing It Goes To Another Scene?

Jun 7, 2009

I'm making a game using Cs3, and As3, And I need a way to make it so when the character touches a swirly thing it goes to another scene...How do I do that?

View 3 Replies

ActionScript 3.0 :: Make A Bullet Disappear When It Hits A Target?

Jul 30, 2011

I have created a class named Bullet() and I create a child named bullet_mc every second.This bullet_mc moves to a direction on the stage.I also created a class named Plane() and I create a child named myPlane_mc every two seconds. Also, every myPlane_mc moves to a direction on the stage.

View 5 Replies

ActionScript 3.0 :: Make It So Once One Instance Hits The Last Frame It Is Removed?

Oct 16, 2011

I have a movie clip that I want to be generated over and over again from the library at a random interval, and when the movie clip hits last frame I want it removed.Here is how I am generating it:

function Spawn():void {
var Poof:Puff = new Puff;
addChildAt (Poof,0)

[code]........

View 9 Replies

ActionScript 2.0 :: Make A File Data Center Sort Of Thing In Flash

Jun 12, 2009

Im making a file data center sort of thing in flash. What's meant to happen is: You click an button on the side of the list and on the display area beside it it shows the text info on that item and the button that you click to display that item! really simple but i dont know how to do it Instance names: what ever you want
Actionscript dyscription:

1. Click button
2. [instance name: "display" MOVIECLIP] displays the frame("display2")
3. Click other button in list and goto and stop ("display3")

View 2 Replies

ActionScript 2.0 :: Make A Custom Cursor - When Hits A Wall It Bounces Off

Dec 5, 2004

im trying to make a custom cursor that when it hits a wall it bounces off and i cant seem to get the right AS. ive got the cursor and i can write AS for a hittest. ive typed in

[Code]...

View 2 Replies

ActionScript 3.0 :: Make The Thing Auto Rotate - Give Me Errors And The Carousel Would Not Load?

Feb 10, 2010

I followed the 3D Carousel tutorial from gotoandLearn http:[url].... I was able to put in my images and change the features to how I want, but for the life of me can't figure out how to make the thing auto rotate.

var tw:GTween = new GTween(container, 0.8, {rotationY:targetRotation}, ease:Exponential.easeOut});
tw.autoRotation = true;

But when I added it it just gave me errors and the carousel would not load.

View 3 Replies

Server Side :: Make A Small Thing On A Website That Will Allow The User To Update The News Themselves?

Dec 26, 2003

Ok I'm trying to make a small thing on a website that will allow the user to update the news themselves.... after reading up on it i found that to export a textfile in this way I would have to have a serverside script to execute it for me (PHP in my case)... I did it, but it isnt working..

View 14 Replies

Professional :: Make Background Move Over / When Movie Clip Hits Edge

Mar 25, 2012

the conent will not be able to be seen unless the user hits the arrow keys on there key board. So i need to make a group of objects i can make into a movie clip and than inside that movie clip make an animation that plays the squirrel running. i will pause here to ask two things i dont know how to do i want the squirrel to have an animation when standing still where it flicks its tail (like a real squirrel would). and also how would i flip the squirrel so when the left key is pressed it points left and when the right arrow is pressed it faces left? and my main question when it reaches the edge of the stage the extended background that runs off stage moves over to reavel more content. as well as not have the squirrel run off stage? in short i am using the squirrel to view the full pages content.

View 2 Replies

ActionScript 3.0 :: TypeError: #1009 - Make A Popup Alert Modal Window Thing With An External Class

Apr 15, 2011

I'm trying to make a popup alert modal window thing with an external class. I have a simple swf set up with just some random sample text, a rectangle, and a button. What I want to happen is for the "alert" class to initialize upon startup of the swf and then when I click the button (instance: btn), the alert will show up. If I get rid of all AS in the swf and set alert as the document class, it shows up just fine, so I think it should be working, but for some reason I get this instead when I try the button function:

[Code]...

View 9 Replies

ActionScript 2.0 :: Make A Specific Thing Happen While Clicking A Specific Button

Jan 17, 2006

What I want is a hint how to make a specific thing happen while clicking a specific button. Like "if I click button 1, do this". Would like to use this script though I'm gonna add buttons over time and this is an easy way to have the functionality working.

Here's the code:

Attach Code

function hitButton(btn) {
btn.onRollOver = function() {
this.colorTo (0xC4006A);

[Code]....

View 4 Replies

ActionScript 2.0 :: Make The Movie/survey Appear At The Top Of The Html Page When The User Hits The "continue" Button?

Apr 13, 2005

i am working on a survey form in MX-04 Pro. I have the main .swf file embedded in an HTML page. The document's width is longer than the viewable screen so the person taking the survey has to scroll down to answer the remaing questions and hit the "continue" button to proceed to the next page/frame in the movie. When the user hits the "continue" button the next frame in the movie appears but the HTML page is still scrolled to the bottom. Is there any ActionScript I can inclued in the frame or continue button to make the movie/survey appear at the top of the html page when the user hits the "continue" button?#2

Is it possible to make the items in a List component sort randmoly? or maybe alternate between "ASC" & "DESC" order? Furthermore, there would be an "Other" option included in my list but I would like that to remain at the bottom of the list while the other items in the list were sorted randomly?

View 2 Replies

ActionScript 2.0 :: Stop The Script When It's Running - Make The Sky No More Snowy And Make Snow Disappear?

Dec 25, 2002

how to stop the script when it's running.To make the sky no more snowy and make snow disappear.

View 1 Replies

ActionScript 2.0 :: Make Falling Snow Stop Or Make It Go Into The Background?

Oct 14, 2003

I saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.

View 1 Replies

ActionScript 2.0 :: Make "laserbeam" Bounce Between "mirror" And "mirror2" When "mcShape1" Hits "mcShape2"

Sep 29, 2004

I am still a beginner with actionscript. I got the hittest_example.FLA and used some of the code on a frame in my movie.[URL]..can't get it to work right in my project. I am trying to make "laserbeam" bounce between "mirror" and "mirror2" when "mcShape1" hits "mcShape2"

View 4 Replies

IDE :: When A MC Hits A MC

Jul 9, 2009

I'm making a small adventure game, and I want the game to go to the next frame once the main guy MC hits another invisible mc, like where the door is. I suppose another way of doing this is when the main guy mc hits an xy coordinate. So basically what I want is a script that says, when MainguyMC hit another MC/ coordinate, go to frame 2

View 14 Replies

ActionScript 3.0 :: More Than One Function One Thing THEN Do Another?

Jan 18, 2009

I'm wondering how you add more than one function to a button? When the button is clicked I want a tween to be carried out which brings a image onto the stage, then once that is there I want each button of a menu to tween in one after another. How can I do this with actionscript?

I've tried just adding the tweens all under one function but they are carried out all together rather than one after another..

View 9 Replies

Mouse Over The 2 Buttons The Whole Thing Disappears?

Mar 26, 2009

When you click on "works" on my site it reveals a menu with 2 other buttons, but when you try to mouse over the 2 buttons the whole thing dissapears. What I've done is set the "works" button to jump ahead in the animation to reveal the menu which is actually one large button with the 2 other buttons on top. The large button is set to - on rollout goto and play frame 1.

View 4 Replies

Actionscript :: Can MouseEvents Target More Than One Thing At Once

Apr 11, 2009

I have a special canvas class covering my entire stage, and a bunch of Sprite hotspots on the layer below. If I put the hotspots on the same layer as my canvas, the canvas does not register MOUSE_DOWN events if my mouse is inside one of the hotspots, since the hotspots are targeted instead. However, if I keep the hotspots on the lower layer, the canvas handles all the MouseEvents. Is there any way to make MouseEvents target more than one thing, so that both the canvas and hotspots respond to MouseEvents? (The canvas is a bitmap drawing class and the hotspots are supposed to trigger when the cursor touches them or clicks on them.)

View 2 Replies

ActionScript 2.0 :: Sound Equalizer, Thing?

Dec 30, 2002

I want to make an equalizer thing. Whatever its called. You know the little bars that move because of the beat.

View 4 Replies

ActionScript 2.0 :: Use A Next/previous Image Thing?

Apr 4, 2004

I want to use a next/previous image thing, which loads the next image from an array into a second movieclip(which will be hidden)... then swap the visiblity of mc_1 and mc_2 ...attach a preloader and stuff.its basically an effort to save some peoples on 56K dial-up lines.so it alternates between mc_1 and mc_2 (which is the easy bit)

Code:
picPath = "";
pics = ['winterrangep1.jpg', 'winterrangep2.jpg', 'winterrangep3.jpg', 'winterrangep4.jpg', 'winterrangep5.jpg', 'winterrangep6.jpg'];

[code]....

this code works, although when I rerun the function by clicking on "box" it just loads the image at pic[0] (winterrangep1.jpg)
while tracing this.picNumber in the loadNextNumber function I get NaN.That only becomes NaN when _root.box is clicked, not when it is run from the _root.

View 1 Replies

ActionScript 2.0 :: Add A Rollout Thing To Each Link?

Jul 29, 2004

[URL]

Anyways, click on that link. As you can see I've set it up so that clicking on one will change the color of the other. As well, they have a rollover to another color.

But, I want to add a rollout thing to each link so that when I rollout the link will go back to the color it was before I rolled over.

Right now it stays with the rollover color and when I add a rollout thing it is constrained to one color. I need it to be adaptive to each situation as I will be adding more links and more colors down the road.

I just need a rollout action that will not change it to a certain color, just the color it was before I rolled over.

If you understood that at all answer. If not, tell me or ask a question to clear it up. I might even whip up a larger version of it with more colors to make it clearer, but only if you need.

View 9 Replies

ActionScript 2.0 :: Scene - Do The Nextscene Thing

Oct 26, 2005

how would i keep going to the next scene after scene ive made 4 scenes and after the frames i put the action code and itll only work untill scene2?

View 4 Replies

ActionScript 2.0 :: Drawing Board Thing?

Nov 19, 2005

I found this tut http:[url]...and wat i want to do is have thing like Flash.I know how to make the lines thicker but i need when you click the button the lines turn thicker like the As changes.

View 9 Replies







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