Need help with a game

Good so I created a stick figure using the online tool and do the walk animation. Each part of the body has its layer and my question is how do the stick figure move and jump using the arrow keys. So far I've done the character to move and jump, but I want also my walk animation starts when I press the arrow button and stop. I'm still a beginner and I play with some code and tutorials, but I can't make it work properly. I already have a platform game with a bouncing ball that was easy enough and now I decided to expand my knowledge by doing something more complicated. I would appreciate some help and explanation.

123.png

If your animations frame by frame are just to make the movement of the body and not really having body change location, and then for the object to move, you can use code and adjust/increment the _x and FLF properties for it.

Here's some code that would make the figure move the arrow keys on the keyboard-based...  In this code, "the figure is the name of the movieclip that contaons all the animations of the body movement."  If the animation that you show above is on the main timeline, then you need to move inside the movieclip figure...

var index = 3;  adjust the speed of traffic

var keyListener:Object = new Object();
Key.addListener (keyListener);

keyListener.onKeyDown = function() {}
If (Key.GetCode () == 38) figure._y = increment;  to the key
If (Key.GetCode () == 40) figure._y += increment;  Press and hold
If (Key.GetCode () == 37) figure._x = increment; left key

If (Key.GetCode () == 39) figure._x += increment; right key

}

Tags: Adobe Animate

Similar Questions

  • NEED HELP WITH FLASH GAME!

    Hi all

    I am brand new to the forums here and I need help!  I'm on a very tight schedule for a flash game project, and can't seem to understand my problem.

    In my game of people shoot 4 different moving images and get points. Simple right? Although images is a question mark that can shoot people and when they do, I need flash to stop the timer game, a new popup window, the multiple choice question appear in the window and wait for the user to respond.

    NOTE: I would also like to be able to customize the size and location of the pop-up window!  Also, the question must be random.  I have a list of questions in a word doc.

    Then, if the answer to the question properly close window award 10 points and continue the game.  If you incorrectly answer the question, saying bad and then display the results of end game.

    Right now I have it to where it opens a pop up in a web browser and askes the question there.  The question is chosen at random from a file called random.html.  But I don't want the game to work this way. I want the game to open the pop in flash.  Can anyone help?  Time is a few hours, SORRY for THE SHORT NOTICE!

    Kapelski

    Everything to do with the movieclip is possible.  You can make sure the questions are changed dynamically whenever he appears... but it is a matter of design to be.  This has nothing to do with the popups... This is a clip that you can control the visibility of and what it contains.  In the Flash file will probably be easier to manage than a popup window outside, as far as the aspect programming and scoring goes.

    Create a movieclip that has a textfield for the question, and all what he needs in the way of user interaction.  Unfortunately, I didn't take the time to give a detailed approach to design.  If you manage to create a shooting game, creating a movieclip which works as you describe should be a fairly simple task for you.

  • need help with a game for a child of 5 years...

    my niece and her man have a 5 year old son, this kid like plants vs. zombies... great time... they got an xbox360 console #: 079576184607, console id #: 030054290249...

    they turn on system and put no matter what Xbox 360 game in the console, it won't play it keeps saying play dvd... could use really help... thanx

    I suggest you ask either in the Xbox Forums: http://forums.xbox.com/default.aspx or Xbox support: https://support.xbox.com/en-US/

  • I need help with my game/guide ActionScript

    I do a table of harmony/Ishkur style-flash guide and need to make sure you can have a read of the sound. If you click a different button, she leaves the audio previous. And while I have your attention, I also need to know how do it by clicking one of the buttons does text appear in the bottom right, and clicking on another gets rid of the previous text. To get an idea of what I mean, look at this:

    http://techno.org/electronic-music-guide/

    1. you can always use the global stopAllSounds() before playing a sound, but with the class' are sound stop() is better.

    2. use a button handler to modify a textfield _visible property.

  • need help with a game to run

    I, m trying to run diablo 2 and the colors are all messed up. I ran in compatibility mode and changed my settings on 800 x 600 16 bits but the colors again mess up can help anyone?


    Thanks for the help


    Justin

    Hello

    Update the display driver.

    $C God will not look you over for medals, but for scars. Each winner has scars; I do this either on the same heart

  • Help with rhythm game

    So I start University at the end of September (that is, 3d character animation) and need to get the grades to get in, unfortunately we have a flash of the im programming unit college course in now and we haven't learned anything at all and I mean nothing, we were given sheets printed and told to copy the code word for Word. so I really need help with my game. How would moving something my cursor? When I move the slider it follows it? also how to play animation click?

    My idea of the game is to have a style of rhythm game where the player moves the net and catches of the bee, something I thought would be simple to figure out how do

    It's my game at the moment, Ive used the code we were told to copy from the leaves and just changed the sprites:-any help would be amazing!
    https://www.dropbox.com/s/1pjbv2mavycsi3q/sopaceship%20rev7%20%20moving%20bullet.fla

    http://orangesplotch.com/blog/Flash-tutorial-elastic-object-follower/

    var distx:Number;

    var disty:Number;

    var momentumx:Number;

    var momentumy: number;

    follower.addEventListener (Event.ENTER_FRAME, FollowMouse)

    function FollowMouse(event:Event):void {}

    follow the mouse in a more elastic way

    using the momentum

    Follower.x = DISTX - mouseX;

    Gefrierschrank follower.y = - mouseY;

    momentumx = distx / 3;

    gefrierschrank = momentumy / 3;

    a little momentum

    momentumx * = 0.75;

    momentumy * = 0.75;

    go get that mouse!

    Follower.x += momentumx;

    Follower.y += momentumy;

    }

  • Need help with a simple basketball game.

    Hi im new here and I need help with what makes this simple basketball game.

    Im trying to recreate this this video game. I'm not sure if it uses as2 or as3

    If someone could help me make a game like this or point me to a link on how to do it would be greatly appreciated.

    AS2 is used in the video.  If you have other issues, please post in the forum AS1/AS2.

  • Need help with the launching track pack for forza code 4

    Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.

    This is the help I get when the cat to an Ambassador xbox on xbox.com

    Terry wrote:
    Need help with the launching track pack for forza code 4
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]
    The Xbox Ambassador says:
    Hello
    Terry wrote:
    Hello
    The Xbox Ambassador says:
    Hey
    Terry wrote:
    just to be on the phone to xbox live support and was told to come here
    The Xbox Ambassador says:
    ok\
    The Xbox Ambassador says:
    What is your problem?
    Terry wrote:
    I bought the 4 for forza ansd 360 new sealed Christmas...
    Terry wrote:
    has got 2 codes that accompanies the game but the pack track code does not work
    The Xbox Ambassador says:
    Wow good
    Terry wrote:
    whenever I put in the code it says code redeemed
    The Xbox Ambassador says:
    I think the code is used. You must return to the retailer
    Terry wrote:
    I tried to, but since I already opened the case they will not accept
    The Xbox Ambassador says:
    Oh. No,
    Terry wrote:
    the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is open
    The Xbox Ambassador says:
    Maybe it was auto bought?
    Terry wrote:
    so, how do I get another code generated track Pack if defective?
    The Xbox Ambassador says:
    I do not know.
    Terry wrote:
    bought the game new, so I get the track pack
    The Xbox Ambassador says:
    Oh. It's bad.
    The Xbox Ambassador says:
    I think that if you Exchange 1 code it will buy it
    Terry wrote:
    car pack code worked, starter pack did not work
    The Xbox Ambassador says:
    Oh.
    The Xbox Ambassador says:
    It's a bad
    The Xbox Ambassador says:
    BTW you have an evolution of the tests?
    Terry wrote:
    Yes, I want to? but more anxious to get a code object generated for this pack
    The Xbox Ambassador says:
    Hey if I help can u give me this game too?
    Terry wrote:
    ?????????????????
    Terry wrote:
    So is it possible to get a code for that time?
    The Xbox Ambassador says:
    Hey
    The Xbox Ambassador says:
    Yes.
    The Xbox Ambassador says:
    you need to contact them
    The Xbox Ambassador says:
    and tell them that the code is used.
    Terry wrote:
    I was told to come here? where can I go to get the code?

    Hi Terryg76,

    ·         What version of the operating system is installed on the computer?

    I suggest you to contact the game manufacturer for more help and information.

  • Need help with screen Blus of death (BSOD) on my computer toshiba laptop

    Hello all, Ive had a little last week, or problems with my laptop. While playing a game (minecraft), I would randomly have a BSOD error and my laptop will re-start. Initially, I gave it no thought, but when it happened again, I decided to try to do a little research, but I'm not terrible with technology and other then I'm neither the case with my own research.

    If someone could point me in the direction of a few possible ways to get this problem.

    guys do you propose I make to the store and see if they can check it out, what would I need if I did.

    I got a program to read some sort of file "dump" made when occurs a BSOD, I publish what this program here says? the program is BlueScreenView, if yes, what I have post the spectator thing? There are has 2 main screens on it, SDO as Sho different dump files (which is on the top) and on the bottom, it lists the names of different files for each dump file I think that some of them highlighted.

    im not this product with tech so I don't know much but I need to post anything on my laptop or any information of the dumpfile and would have this info help in any way to determine the problem? just tell me what I have to post and ill get the information displayed in a response, thank you.

    -leoknighted

    PS: I don't think that playing minecraft is the cause of the BSOD and crashing, but I only get it when playing minecraft, so I don't know if minecraft is causing accidents and others. I watch videos and this all the time and I never have an accident. I'll try and play a different game and see if this causes my laptop down and the cause is perhaps high usuage to my laptop, as I've said games require a lot of power of a laptop/computer, if they are not the 'best' laptop for games. but yh, if someone thinks they can help me and need some information please tell me so I can get it for you. If you guys think it would be best to get a professional to look just mylaptop say, however im save as a last resort.

    Hello

    I suggest you to refer to this article to check if this help.

     

    Resolve stop (blue screen) error in Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/resolving-stop-blue-screen-errors-in-Windows-7

    Important: System Restore will return all system files not as documents, email, music, etc., to a previous state. These files of types are completely affected by the restoration of the system. If it was your intention with this tool to recover a deleted file to non-system, try using a file instead of system restore recovery program.

     

    Important: while performing the check disk on the hard disk, if bad sectors can be found, then check disk will try to repair this sector. All the data available in this area may be lost.

     

    Custom installation WARNING: If you format the hard disk during the installation, the data files are saved in a Windows.old folder on the partition you installed Windows 7.  However, you should always back up the files. If you have encrypted data files, you may not be able to access them after installing Windows 7. If you have backed up your data files and then restored after Windows 7 is installed, you can delete the Windows.old folder.

    Let us know if you need help with this question, we will be happy to offer you our help.

  • Need help with a SQL query

    Hello

    I have a data in table (raj_table) with columns (char11) raj_id, raj_number (varchar2 (15)), raj_format (NUMBER), Primary_ID (identity with the values of the primary key column)

    Primary_ID raj_id Raj_number Raj_format

    1                            raj                 rajvend                      1

    2                            raj                 rajvend                      1

    3                            raj                 rajvendor1                 2

    4                            raj                 rajvendor1                 2

    5                            raj                 rajvendor1                 2

    6                            raj                 rajvendor2                 3

    I used under SQL to get query output as below, but has not achieved the required result:

    Select client_id vendor_number, vendor_format, primary_id, row_number() on sl_no (client_id partition, primary_id, vendor_format order of client_id primary_id, vendor_format, vendor_number, vendor_number)

    from raj_table by sl_no asc

    SL_NO raj_id raj_number raj_format primary_id

    1                   1                   raj              rajvendor                 1

    1                   2                  raj              rajvendor                 1

    2                   3                   raj              rajvendor1                2

    2                   4                   raj              rajvendor1                2

    2                   5                  raj               rajvendor1                2

    3                   6                    raj              rajvendor2                3

    I need help with a SQL query to get the result as above without using the group by clause. I want to bring together the combination of separate line of the three columns (raj_id, raj_number, raj_format) and add a unique serial number for each online game (SL_NO column below). So, above there are 3 unique set of (raj_id, raj_number, raj_format) I can get in a group by clause, but I can not add prmiary_id, SL_NO values if I group by clause. I used the analytical functions like row_number() but no luck. Need solution for this.

    with t as)

    Select 'raj' raj_id, 'rajvend' raj_number, 1 raj_format, 1 primary_id Union double all the

    Select option 2, 'raj', 'rajvend', 1 double Union all

    Select 3, 'raj', 'rajvendor1', 2 double Union all

    Select 4, 'raj', 'rajvendor1', 2 double Union all

    Select 5, 'raj', 'rajvendor1', 2 double Union all

    Select 6, 'raj', 'rajvendor2', 3 double

    )

    Select dense_rank() over (order of raj_id, raj_number, raj_format) sl_no,

    t.*

    t

    order by primary_id

    /

    PRIMARY_ID RAJ RAJ_NUMBER RAJ_FORMAT SL_NO
    ---------- ---------- --- ---------- ----------
    1 1 raj rajvend 1
    1 2 raj rajvend 1
    2 3 raj rajvendor1 2
    2 4 raj rajvendor1 2
    2 5 raj rajvendor1 2
    3 6 raj rajvendor2 3

    6 selected lines.

    SQL >

    SY.

  • Installation of the elements 11 on Mac. Need help with installation error "Setup wants to make changes.

    Installation of items 11 Mac 10.8.2. Need help with Setup error: installation wants to make changes. Type your password to allow this. "After entering the Adobe password, nothing happens.  Locked for more than installation.  Any ideas?  Phone support Adobe couldn't help.

    Just prior to leaving changes (installation in this case) is done on the Mac OS application password & it must be the password for Mac system. This password is the native guest of the system clean & accept the password only. Please make sure that it's the right password (all/admin rights) and the game should work.

  • Need help with drag and drop

    IM really new to this program as a

    day new hehe and I need help. im making a game quiz and your supposed

    ED to score in the hoop with a circle.  I have the

    codes for the drag and drop for the circle, but I need help with the collision between the Hoop and the ball, I want to go to the image next or gotoandPlay when the ball touches the ring. HELP PLEASE

    You should not attach code to objects.  and you can be able to happen by using a loop.

    Start by removing all the code the suggested by maqro (i.e. as3) and by removing all the code attached to objects.

    use:

    {yourobject.onPress = function ()}

    this.startDrag ();

    }

    {yourobject.onRelease = yourobject.onReleaseOutside = function ()}

    this.stopDrag ();

    {if (this.) HitTest (whatever))}

    do something

    }

    }

  • I'm suddenly needing help with my browser Firefox (6.0.2)

    Hello
    I'm suddenly needing help with my browser Firefox (6.0.2)

    (OS: I use Windows XP).

    When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.

    I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.

    This problem started today, September 8, 2011 and has never happened before.

    Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?

    I also noticed that just before I "opened" Firefox, I now get a small box indicating:

    [JAVASCRIPT APPLICATION]
    Handl exc in Ev: TypeError: this oRoot.enable is not a function

    This never appeared before - I hope that it offers a clue has what is wrong.

    The browser not be stuck in Mode safe, said by the way.

    Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
    (A friend sends this request in my name from their pc)

    Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.

    If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
    In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.

    Thanks in advance.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Need help with installation on Photosmart C7280 all-in-one

    I had my printer is installed and has been using the printer for 3 wireless laptops in my house.  Now, I can't even find my backup drive, so I have need help with downloading the software to use my printer and also get to use wireless.   I don't know what happened, but the fax for this printer is listed, but not the printer itself.   Help, please!

    Click here to download the software for your printer:

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?product=3204785 & LC = on & CC = US & DLC = in & lang = to & CC = US

    has chosen the appropriate operating system that corresponds to your computer and download the full software features.

  • HP laptop: need help with internet and search for things

    whenever I'm on chrome internet explore google ect and go to tab it is says unknown error or no internet connection or anything and just takes me chrome ect. I need help with this im involved in a byod class and my computer won't let me on what whatever usually it just starts out black and white and the seeds I my search request

    Yes it's a Windows 10 and it arrived already installed I'll take the other info now

Maybe you are looking for