Making Man Jump And Gun With Calling Different Levels
I am making man walk and jump and pull out a gun by placing in different levels of dot syntax. I got him to jump and to walk. But I cant figure out how to pull out a gun on the second level and I want to contiue go father in levels by calling it up different movemnets for him. Another question which is better to use realtive or Abosulte? How do you write that. My action script is below. Also, It slows down when I play it. How do I make it go smoother.. Is there a better way to write a man to move and do actions. Thanks I have included the FLA file.
on (keyPress "<Left>") { _x -= 20; with(dude) { _root.man.gotoAndPlay("walk"); } }
on (keyPress "<Right>") { _x += 20; with(dude) { _root.man.gotoAndPlay("walk"); } }
//Pulls gun out on (keyPress "<Tab>") { with(pull_gun) { _root.man.dude.gotoAndPlay("gun"); } }
on (keyPress "<Space>") { with(dude)//This is the instance name for scene man { _root.man.gotoAndPlay("jump"); } }
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-17-2004, 03:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making A Jump Help
FLASH MX
I want to make an extreme sport game, I know how to make it so the character can move and go on ground but I can't figure out how to make him go off jumps. What do I need to do?
Making A MC Jump...
i am making a mario type game and i was wondering if someone might be able to explain to me how i can achieve a jumping effect when you press a key such as the control key. i know it can be accomplished by animating it, but is there a way to use actionscript that will move the entire movie clip up to a specified height and then return to its original position? thanks!
Making The Jump: AS2 To AS3
Hey everyone,
I'm sure this has been asked over and over again, but I did a search and didn't come up with anything. I consider myself pretty well versed in AS2 and want to make the jump over to AS3. Lately I've been watching some Lynda.com tutorials and it seems very repetitive to what I already know, with a random new snippet here and there.
Are there any books, cheatsheats, etc... that will help me learn the new aspects of AS3 without going through all the programming basics again?
Thanks a lot!
Mike
Making The Jump From AS2 To AS3
Hi. well I got flash CS4 for christmas, and I have been using flash MX 2004 professional for about 4 years.
What should I look out for? is there a big change in the syntax?
Is it pretty much the exact same thing except with more predefined methods, and added parameters to existing methods?
Calling Mc With Different Levels
Hi,
How can I call an mc from _level1 to _level0.
on _level0
_root.mc1
on _level1
_root.mc2.mc3
I want that mc3 on button event starts playing mc1
thanx
trolljanz
Calling Levels
I have a main movie that calls the first section on level 2 another button calls the second section on level 2 too so level 2 is always the content of the page called.
Now I want to have the buttons in the main movie not to just call something onto a level but to go to a certain frame label when that level is loaded.
How do I do this. How do I tll it that the Hello Label is in the main.swf swf and not on the main movie
on (release) {
loadMovieNum("first.swf", 2);
gotoAndPlay("hello");
}
Grateful for any help
Hello From ME
Making The Actionscripting Jump
Alright, to me it seems like there is a big gap between the basic "Goto", "OnMouseOver,"Play," "Stop," etc, and the more advanced know how of great actionscripting. Many commands in actionscripting are simple to learn and develop into a good site, but others, it seems the only resource we have is to turn to our 'gods of flash' her at flashkit for the answers. This makes for a terribly plagerized look.
My question is, is there a resource (more specific that just flashkit) or an online book (ie, advanced actionscripting for dummies without the PhD)???? If anyone can help, please respond....
JK
Should I post this thread somewhere else??
Making Is Slide, Not Jump
i have a movie clip ... and i want it to do basiscally this
on (rollOver) {
setProperty("_root.menuTab", _y, "300");
}
but I want it to slide to the position instead of jumping to it. how do I achieve this with action script.
Making An Object Jump
I'm just getting into programming with Actionscript (MX 6), and I'm working on a sidescrolling platform game. Unfortunately, I can't seem to find any platform game tutorials online, so I'm pretty much doing it myself, using the O'Reilly ActionScript MX book for reference.
So far I've worked out moving sideways and collision detection, which were both pretty easy. What I need to figure out is how to make my movie clip jump. I have a jumpheight variable set at 50, so I want the Y value to increase gradually until it peaks 50 pixels from where it started, then gradually come back down until it collides with a solid object. But I can't really figure out how to do that. I've got this:
Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL)) {
_y -= [uhh...]
}
}
But I dunno how I work jumping into that. Any ideas?
Making A Character Jump
looking for some basic actionscript to make a character jump when you press a button like the control key. it must move the entire movie clip.
[F8] Making A Character Jump?
Hey,
How can I make my character jump for a platform game?
I don't know how to set up a jump with gravity etc.
Can anyone help?
Here is my actionscript for the character MC:
Code:
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.LEFT)) {
_x -= 3;
_xscale = -xscale;
gotoAndStop(2);
}else if (Key.isDown(Key.RIGHT)) {
_x += 3;
_xscale = xscale;
gotoAndStop(2);
}else
gotoAndStop(1);
}
}
Having Trouble Making The Jump To AS3?
Hey guys. I like many others out there was having a really hard time making the jump from AS2 to AS3. I've never considered myself a really heavy programmer and so all the new things introduced in AS3 just gave me a headache. The biggest hurdle was I although I've worked with flash since version 4, I've never messed with creating my own classes and suddenly everything has to be a class. It wasn't so much the changing of terminology or technique that held me back, it was having to change the way I thought.
So if this sounds like you, I've started writing some tutorials from this perspective in hopes of helping others make that jump. If you are interested you can check them out here:
http://test1labs.com
Let me know if it helps you out at all because I'm probably more likely to write more articles sooner then later if I know people are actually reading them.
Making A Character Jump
i need to make my character jump about 1/3 the stage height (wich is 512 pixels) and slow down at the top of the jump and then speed back up to his original speed of 7.5 when falling down.
i already have the code to play his jumping animation wich is follows
ActionScript Code:
//check if the user has the spacebar pressed
if (Key.isDown(Key.SPACE)) {
this.gotoAndStop(3); // show mm jumping animation
}
wich is part of the whole
ActionScript Code:
// mega man variable
var mm = megaman; // refrence the movieclip
var speed = 7.5; // move the movieclip by
// when called;
function moveMM () {
// check if the user has the left arrow pressed
if (Key.isDown (Key.LEFT)) {
this._xscale = -Math.abs (this._xscale); // flip mm
this._x += -speed; // move mm
this.gotoAndStop(2); // show mm running animation
}
// check if the user has the right arrow pressed
if (Key.isDown (Key.RIGHT)) {
this._xscale = Math.abs (this._xscale); // flip mm
this._x += speed; // move mm
this.gotoAndStop(2); // show mm running animation
}
//check if the user has the spacebar pressed
if (Key.isDown(Key.SPACE)) {
this.gotoAndStop(3); // show mm jumping animation
}
}
// setup flash to listen for the user's keyboard
var myListener:Object = new Object();
myListener.onKeyUp = function () { // when any key has been released
mm.onEnterFrame = null; // disable mm's onEnterFrame
mm.gotoAndStop(1); // display mm's stop state
}
myListener.onKeyDown = function () { // when any key has been pressed
mm.onEnterFrame = moveMM; // enable mm's onEnterFrame (which keeps calling our moveMM function)
}
// now that our listener is set; initilize it
Key.addListener(myListener);
and help would bve appreciated
Having Trouble Making The Jump To AS3?
Hey guys. I like many others out there was having a really hard time making the jump from AS2 to AS3. I've never considered myself a really heavy programmer and so all the new things introduced in AS3 just gave me a headache. The biggest hurdle was I although I've worked with flash since version 4, I've never messed with creating my own classes and suddenly everything has to be a class. It wasn't so much the changing of terminology or technique that held me back, it was having to change the way I thought.
So if this sounds like you, I've started writing some tutorials from this perspective in hopes of helping others make that jump. If you are interested you can check them out here:
http://test1labs.com
Let me know if it helps you out at all because I'm probably more likely to write more articles sooner then later if I know people are actually reading them.
Calling Through Swfs And Levels
This is the low down.
• I have a main movie(mainPage) with nothing realy in it
• The navigation(mainMenu.swf) loads into mainPage at level 50
• One of the main navigation buttons loads a sub-menu of buttons(subMenu2.swf) into a movie clip(instance name = empty) in mainMenu on level 50.
The problem is I cant figure out how to call out a button(btn1Sub2) from the first frame of my main movie(mainPage).
How do i specify the swf's in dot syntex?
_root."mainMenu.swf"."subMenu2.swf".btn1Sub2 ?
_root.level 50.empty.btn1Sub2 ?
I have no idea, I've tried a bunch of crap.
Anyone have any idea about this?
If you need more information on the structure just ask
This is killing me! it should be so simple.
Calling Functions From Other Levels
I have a bunch of functions defined on the _root level. Most the actions being performed are on that level or originating there. But later on I had to make a contentMC that loads into itself different SWFs. Can I access those _root based functions from within that content MC? If so, what would the command look like? Thanks.
Calling Functions On Other Levels
Hi. I have a function that I define on level 1. When I try to call it on level 0, it doesnt work. I dont know why. I have defined it like so:
ActionScript Code:
_global.floatTo = function(thePiece) {}
And I am calling it from level 0 like so:
ActionScript Code:
_global.floatTo(1);
Any suggestions on why this might not work? I was using _level1.floatTo instead of _global but then I searched the forums and I found out about making it global, but it still doesnt work! Thanks for any help or suggestions in advance...
Ted
Calling Functions On Other Levels
Hi. I have a function that I define on level 1. When I try to call it on level 0, it doesnt work. I dont know why. I have defined it like so:
ActionScript Code:
_global.floatTo = function(thePiece) {}
And I am calling it from level 0 like so:
ActionScript Code:
_global.floatTo(1);
Any suggestions on why this might not work? I was using _level1.floatTo instead of _global but then I searched the forums and I found out about making it global, but it still doesnt work! Thanks for any help or suggestions in advance...
Ted
Making Web Page Jump Back To The Top.
I have a flash web page which is a catalog w/ dimensions of about 700x1500. You can click on each item in the list and a picture of that item will appear at the top of the page in a designated area. But because the page extends several screens down, I need to make the page "bounce" back up to the top each time you click a item. I've tried a variety of simple Actionscript sequences in the Button Actions, but my grasp of AS is fundamental at best, and I can't figure it out. I have two books on Flash, and can't find suggestions for this in either of them.
Better yet (if I can extend the question a tad) would be if upon PRESSING the button, the page jumps up to the top (where the information/picture box is), and upon RELEASE, it returns to its original location down the page.
Thanks to anyone who can help,
K
Character Movement Making Him Jump
Hiya again,
you may have seen my previous post about arrays, well i'm still learning and have set myself another project which i've got stuck on. I have a character that, walks left and right (on respective key presses) and stops facing the way he is going. My problem i have now is i want him to jump on the up key press. How do i do this ?
Heres my FLA file... perhaps someone can advise me on what to do.
Character movement thingy
Making Icon Jump From One Place To Another
I am creating a file in which there is a dual-monitor set up with one monitor over the other with a small mouse icon that moves when the user drags over a hotspot. When the user toggles a particular switch to the UPPER setting, the mouse icon moves as it would on a normal dual monitor setup where, when moving up, it skips from the top of the lower monitor to the bottom of the upper one.
When the switch is toggled to LOWER, however, the mouse will actually stop in the middle of the 2 monitors (either at the top of the lower or bottom of the upper monitor) depending on which direction it's moving. (see attached image)
So far, I've been able to code the icon to work in the 1st situation. This code is below:
Code:
this.onEnterFrame = function() {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (monitors_mc[cursor]._xmouse != nowX || monitors_mc[cursor]._ymouse != nowY) {
right = monitors_mc[drag]._x+monitors_mc[drag]._width;
top = monitors_mc[drag]._y;
botOfUpr = monitors_mc[drag]._y + monitors_mc[drag].top_mc._height;
topOfLwr = monitors_mc[drag]._y + monitors_mc[drag]._height - monitors_mc[drag].bottom_mc._height;
//topOfLwr = monitors_mc.drag_mc._y;
//botOfUpr = monitors_mc.drag_mc.top_mc._y+monitors_mc.drag_mc.top_mc._height;
bottom = monitors_mc[drag]._y+monitors_mc[drag]._height;
//
if ((monitors_mc[cursor]._y<bottom && monitors_mc[cursor]._ymouse-nowY>0) || (monitors_mc[cursor]._y-10>monitors_mc[drag]._y && monitors_mc[cursor]._ymouse-nowY<0)) {
monitors_mc[cursor]._y += 0.25*(monitors_mc[cursor]._ymouse-nowY);
}
//
if ((monitors_mc[cursor]._x<right && monitors_mc[cursor]._xmouse-nowX>0) || (monitors_mc[cursor]._x>monitors_mc[drag]._x+8 && monitors_mc[cursor]._xmouse-nowX<0)) {
monitors_mc[cursor]._x += 0.25*(monitors_mc[cursor]._xmouse-nowX);
}
if ((nowY-monitors_mc[cursor]._ymouse) > 0) {
if (monitors_mc[cursor]._y < topOfLwr && inMonitor=="bot") {
monitors_mc[cursor]._y = botOfUpr;
inMonitor = "top"
}
}
if ((nowY-monitors_mc[cursor]._ymouse) < 0) {
if (monitors_mc[cursor]._y > botOfUpr && inMonitor=="top") {
monitors_mc[cursor]._y = topOfLwr;
inMonitor = "bot";
}
}
nowX = monitors_mc[cursor]._xmouse;
nowY = monitors_mc[cursor]._ymouse;
}
}
};
However, I'm not sure how to go about performing the 2nd option. Does anyone have any ideas?
Chris
Making A Game Character Jump Realistic?
Does anyone know how to make a character jump realistic? I tried for 2 days to look for an answer but everything I tried failed.
There shoud be a sort of Math.sin ecuasion in the code but so far I'm lost.
I'd planned to make the character jump by pressing the UParrow.
Can anyone help me?
Thx. Jurriaan Hos
Making Score Jump To Frame Not Working
Code:
_root.score = _root.score+1;
if (_root.score==250) {
gotoAndStop(61);
Ok well it keep's track fine its just not jumping to the frame.There are no error's or anything.
Making MC's Swap Levels
hello people,
is it possible to make MC's swap levels within the same layer? i have 8 MC's in the same layer and need to alternate which is at the top on the press of respective buttons... please help if you can, thanks john
p.s. need help quick on this one...
Making Levels... If Statement
hey guys, im new to this forum so im sorry for posting this message 2 times, and once into the rong forum L , but anyways.. here is my problem, im trying to write an if statememnt so that in the game im making when the score hit a certain number the level changes,
ive tried this and nothing worked, ( i dont know if this is correct )
if ("score" =< "30000") then
gotoAndPlay(1)
i dont think this is correct but if someone could please help me, it will be most apreciated.. .thanx
-baleric
Making Various Levels Line Up?
This is a very baisic question:
I have loaded an image from an outside directory into a new level. I would like to be able to move the image to a new location within that level as it does not line up the way I want to on the main stage. What is the correct way to tell this laoded movie clip within the new level to switch to a specified location?
Thank you
Making Lower Levels Unselectable
i like creating my sites into levels for fast loading purposes. if i bring up a page that purposely covers the menu and other buttons on lower levels, how do i make those buttons on the lower levels unselectable until the user closes(unloads) the top level movie. right now on the user can select anything below without even seeing it because the mouse changes to a finger. please help thanks...
this can be seen here by going to the about, then services page and click on web design. you'll see that you can select the menu still. it doesn't matter if the "background" is opaque, or if i create a graphic and alpha it for the background and if i just make a solid background, you can still always select the levels below...
http://www.richardson-graphics.com/newsite/main.html
thanks for you help
[F8] Talking About Levels..controling Levels, Loading Swfs Into Levels, Etc
Hello, people!
I have a little tweaking i need to adjust.
To get to the point:
if (1==1)
{
loadMovieNum("test.swf", 3);
_level3.gotoAndStop(10);
}
else (...)
The problem is that on the if cycle, it doesnt consider the level as being loaded. I've tryed a while to wait for the level to load, nothing worked.
I've tested with a button to see if the level exist and is possible to control it and it is, with the onRelase.button etc etc.
Any ideas?
Ricardo
Thanks!
Making A Full Flash Site - Buttons Calling In External .swf Files?
I've just created a full flash site in which every page is a different .swf file with different buttons which in turn point to another swf file. The code i use in the buttons to open up the next .swf into the window is:
on(release){
loadMovieNum("externalfile.swf",1);
}
it is a very graphic/arty website and there is no main menu that stays all the time, the buttons are in different places on each page.
My problem is, after the home page loads up and i click on a button to view another page, the cursor is still able to detect the buttons from the home page in the new page and click on them, even though they shouldn't be there and you can't see them.
Is there a way around this, or a different way of loading the .swf files into the site?
Thanks in advance. This is driving me crazy!
"Making The Jump" From Beginner AS To OOP
I've been teaching myself AS for about the past 6 months, as I've had time, and I feel like I have a good grasp on the basics. I've been through a ton of the tutorials on this site, including the AS/XML ones, and I think I'm ready to take the next step...
I always hear people talking about AS2.0 and 3.0, using OOP and classes and whatnot, and I really want to dive into that level of ActionScripting... So here's my question: Does anybody have any suggestions for studying/practicing/learning these more advanced AS techniques? Put me in, coach!
Thanks!
Jump Mask, Jump
How can i make the mask jump to a point when i rollover that place? (not follow the mouse as it does now..)
Here is the page how it is now:
netmedia
[levels] Snapto And _levels Targeting Levels
This code is on the root of a movie, it workks fine. However, when i load it into level 100(from another movie) , the snap-to code no longer works.
I've worked with levels a lot, but this really stumps me.
I've tried many many variations to taget the correct path, _levels. _root, this._name, targetPath,
The basic code appear below.
//code on root movie
onEnterFrame = fsnapto;
function fsnapto(){
//trace("pushed @ snapto ==" +choices);
// target1
area_oftarget_x = target1._x;
area_oftarget_y = target1._y;
//target2
area_oftarget_x2 = _root.target2._x;
area_oftarget_y2 = _root.target2._y;
}
// == end snap to==
// code on buttons
on(release){
if(_root.a3._droptarget == "/target1"){
trace("dropped 3================" +this.targetPath);
_root.fchoice("a3");
_root.a3._x= area_oftarget_x;
_root.a3._y= area_oftarget_y;
}
}
Swapping Levels - Levels Infinate?
Hi
im trying to produce a little news panel that you can swap between news items. The problem im having is the following... when I click a 'next' button I want a new story swf to load over the top - and so on for anouther 5 or 6 times. I want to be able to click forwrd randomly between stories - BUT how do I make sure that the next storie loaded is always on the next level up - and that the last swf is unloaded when the new one has loaded?
thanks for your help
PS: I thought of just putting all the news items in the same SWF but this would meen loading them and all their pictures at the same time and also make it harder to change/update indivdual stories
Calling A Function, External To The Calling Class
hello to everyone, who looks at this post
So there's a class, that needs to call/access an external function.
'External' (imho) in this case would be any function, declared outside of the class.
How is it possible to:
1) call a function declared in the main timeline.
2) call a function in another class (i suppose, the only way of doing it is by importing the class having this function into the calling class?)
Conflicting Levels? Too Many Levels?
I've been working on this pattern maker and I have a movie clip that is basically a pixel. I duplicated that movie clip 1024 times using the following code:
for (y=0; y < 32; y++) {
for (x=0; x < 32; x++) {
_root.newName = "sampleMovie" + ((y * 32) + x);
duplicateMovieClip (sampleMovie, _root.newName, ((y * 32) + x));
xPos = getProperty(newName, _x);
yPos = getProperty(newName, _y);
setProperty(newName, _x, (x*movWidth) + xPos);
setProperty(newName, _y, (y*movHeight) + yPos);
}
}
Well, I tried duplicating another movie clip the same way with a slightly different code as follows:
for (a=0; a < 32; a++) {
for (b=0; b < 32; b++) {
_root.gridName = "grid" + ((b * 32) + a);
duplicateMovieClip (grid, _root.gridName, ((b * 2048) + a));
xPosG = getProperty(gridName, _x);
yPosG = getProperty(gridName, _y);
setProperty(gridName, _x, (a*movWidth) + xPosG);
setProperty(gridName, _y, (b*movHeight) + yPosG);
}
}
When I did that it duplicated the "grid" movie clips, but it didn't duplicate the "sampleMovie" movie clips. I figured it was because there were conflicting levels. So what I did was made a horizontal rule and just tried duplicating that just 32 times using the following code:
for (a=0; a < 32; a++) {
xLine = "horLine" + a;
duplicateMovieClip (horLine, xLine, a + 1025);
xAxis = getProperty(xLine, _y);
setProperty(xLine, _y, xAxis + 10.4);
}
This code only duplicated the movie twice. Am I using too many levels? How many levels can Flash recognize? The first code I showed produced 1,024 levels of movie clips and worked fine. Why would that last code only duplicate it twice instead of 32 times? Thanks for the help.
Levels, Jerry, Levels
Anyone who how to change a movie's level with a command? Sorta like swapdepths but for levels. I'm tryin got get a movie to basically go from being on level1 to levelo and replacing the movie in level0. I've asked in the newbies sections but no one knew for sure. Was hoping you guys would have a little something for me.
Vij'n
[F8] Controling Levels From Other Levels
Hi all,
I would like to have a button on level 0, that loads a swf on level one. In the swf loaded on level one I want to have another button wich controls a movieclip on level 0. Is that possible? I don't want to use containers, but use loadMovie("movie.swf", 1) method. Any ideas?
Thank you
Making A Grid And Making It Mask Images
Hey guys,
I have this code below and i am trying to make each of these movie clips dynamically mask an image. For some reason it still does not work. I can get the grid to come out correctly but the masking is suspect. Any help would be very much appreciated. Thank you
num=0;
for (i=0; i<12; i++){
for (j=0; j<45; j++){
this.createEmptyMovieClip("a"+num, num)
this.createEmptyMovieClip("b"+num, num+1)
//trace(num);
//trace("IMAGE DEPTH: " + this["b"+num].getDepth());
this["a"+num].attachMovie("thelinked", "thelinked2", num);
this["b"+num].attachMovie("thelinkedimage", "thelinkedimage2", num+1);
mc=this["a"+num]["thelinked2"];
image=this["b"+num]["thelinkedimage2"];
mc._x=i*12;
mc._y=j*12;
image._x=i*12;
image._y=j*12;
image.setMask(mc);
num++;
}
}
(^_^) Can A Rat Jump?
Greetings!
Hi friends,
Another help needed
I was making a small game in which a rat has to jump on the walls and if he falls down...he will die.
And I wanted to give a jump option with space bar or the up arrow key... but my main question is I wanted to make the rat jump upto 90 pixels high and if the right arrow key is pressed along with jump key then the rat should jump upto 90 pixels high and 40 pixels toward the right side.
It is possible to do so? I made the graphics and all but stucked here...
Thanx
I Need To JUMP...
Is ther a command that will enable a button to goto previous "Frame Label" or "next frame label"? Instead of previous FRAME next FRAME I have a universal control that I am trying to use throughout a walk through flash demo.
Am I making sense?
J
Jump
How can you make a dude jump like in mario?
Can't Jump
i am having serious issues. i am truing to make a mario like videogame, but i can't get the character to jump.
i have declaired the variable checkjump as false and created this function:
(a and b were declaied as having a value of 1)
(inu is what i named the character.)
jump = function(){
if(checkjump == true){
if(a<15){
inu._y -= 10;
a++;
}
if(a>=15&&b<15){
inu._y += 10;
b++;
}
checkjump = false;
}
}
and then i used this code on enter frame:
onEnterFrame = function(){
if(Key.isDown(Key.UP)){
checkjump = true;
jump();
}
}
but when i test it, he only jumps while i'm holding the up key down and i can only make him jump once. i have tried several other types of codes and loops but they don't seem to work any better. please help me. i'm really stuck.
thanks so much for you time.
Jump
Problem: I need to find a way to make my "character" move up wards(jump) for a while then fall. I have tried several methods, and its not the gravity I'm having trouble with, and I'm not having trouble in gradually incrementing the y position, the trouble is in how long the button can be pressed for before the character actually starts to fall back down. See right now the user can just hold the jump button and go as high as they want, I would like to limit their "air" time, like a real jump. In real life you cant just think in your head "jump" then float away.
Heres my current code(for gravity and jump, its basic because I've restarded over an over trying to get it to work):
Code:
if(!_root.ground.hitTest(this)){
this._y += vSpeed;
}else{
}
if(Key.isDown(Key.SPACE)){
this._y -= 80;
}
all help is greatly appreciated.
Jump From Mc To Mc
pls help.
i have 2 movieclips instance named winone adn wintwo, both inside a movieclip ball (the mc ball is on the main timeline or _root). inside the first mc(winone) i have a button on witch i want to aply an action so that when i click it, the movie plays from a frame labeled k wich is on a timeline inside the second movieclip(wintwo).
as the title sais i want to jump from the first mc to the second. if u know that action that must be aplyed to the button pls tell me.
thanks!
How To Jump
I haven't meesed with flash in a long time and I have forgotten a lot of things.. I just remembered how to move a character using keyboard. Can someone tell me how to make a character jump using the space bar? I looking everywhere on the site. Using search typing jumping character animated character and EVERYthing possibly can someone solve this for me?
Swf Jump
how can i add command to a button, so when i click on it to jump from current swf to target(other) swf...
|