Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2006
    Posts
    1,587
    Tokens
    0

    Latest Awards:

    Default [Tutorial] How to make an advert/game

    Weve all seen and done them Shoot the stormtrooper and win and xbox, lasso the donkey and win an ipod
    And with this simple tutorial you can make one to!!!
    Requirments: Flash
    Levelast/Medium [little flash knowledge required]
    http://www.nintendo.slyhost.be/Balloon.html

    On the first frame enter this code into the actions panel [If its not up push F9]
    stop();

    Next create the object you want to be in control of and then press F8 and convert it into a movie clip called Hero

    Click on ‘Hero’ and open up the actions panel [If its not there push F9]
    And paste this code

    onClipEvent (load) {
    speed = 4;
    }
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
    _x -= speed;
    }
    if (Key.isDown(Key.RIGHT)) {
    _x += speed;
    }
    if (Key.isDown(Key.UP)) {
    _y -= speed;
    }
    if (Key.isDown(Key.DOWN)) {
    _y += speed;
    }
    }

    Which basically lets your object move
    Push ctrl+enter to test it
    In the properties at the bottom give it the instance name hero

    Now we will move on to making the gold
    Create it then push F8 and convert it into a movie clip called gold
    Make sure it is selected and in the actions panel copy and paste

    onClipEvent (enterFrame) {
    if (this.hitTest(_root.hero)) {
    this.gotoAndstop(2);
    _root.restart();
    _root.nextFrame();
    }
    }

    Which says if it collides with the ‘hero’ it will go to the second frame

    Now create a second frame make sure its selected and paste this into the actions panel

    getURL('http://www.Yoursite.com');

    Now test it and when your ‘hero’ touches the gold it should go to the second frame and open your site

    Finally we will create the enemy.
    Copy and paste it in, convert it to a movie clip and call it enemy
    Copy and paste this code into its actions panel
    onClipEvent (enterFrame) {
    if (this.hitTest(_root.hero)) {
    this.gotoAndstop(3);
    _root.restart();
    _root.gotoAndStop(3);
    }
    }

    Then create a 3rd frame which says Game over in the centre
    Then create something which says Retry push F8 and convert it into a button and in the actions panel write

    on (press) {
    gotoAndStop(1);
    }

    Now place these enemies wherever you want you can make them move using motion tweens or you can make them still like a maze its your choice.
    Last edited by SimplyTech; 07-10-2006 at 12:27 PM.

  2. #2
    JoeComins Guest

    Default

    I need to make an advert for my DiDA 202 project.

    Thats quite nce, but I have to use the URL to the SWF directly

  3. #3
    Join Date
    Jun 2006
    Posts
    1,587
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by JoeComins View Post
    I need to make an advert for my DiDA 202 project.

    Thats quite nce, but I have to use the URL to the SWF directly
    You could do that if you edited some of the code most of it would stay the same

  4. #4
    Join Date
    Sep 2006
    Posts
    196
    Tokens
    0

    Default

    What program you use?

    I need to make a haunted house for my site..

  5. #5
    Join Date
    Jun 2006
    Posts
    1,587
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Misdameanor View Post
    What program you use?

    I need to make a haunted house for my site..
    Flash like it says

  6. #6
    Join Date
    Sep 2006
    Posts
    196
    Tokens
    0

    Default

    I knowww.

    But isnt there like a program?

    Or do you just make files.

  7. #7
    Join Date
    Oct 2006
    Location
    Doncaster, UK
    Posts
    1,458
    Tokens
    0

    Latest Awards:

    Default

    Nice tutorial.

    Offtopic: Misadomaraeaera: Who makes Flash?
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have images in your signature which are over the size limit for your usergroup.

  8. #8
    Join Date
    Sep 2006
    Posts
    196
    Tokens
    0

    Default

    Well sorry Mr. Sassy Pants.

    I don't really make flash.
    -.-

  9. #9
    Join Date
    Oct 2006
    Location
    Doncaster, UK
    Posts
    1,458
    Tokens
    0

    Latest Awards:

    Default

    You couldn't answer one of the simplest question's you'll ever get asked on this forum.

    The answer was Macromedia.

    How do you expect to make a game when, it seems you know chuff all about MaccyFlash?
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have images in your signature which are over the size limit for your usergroup.

  10. #10
    JoeComins Guest

    Default

    Actually, Macromedia dont make Flash.

    Adobe bought out Macromedia, as so Adobe makes Flash, Dreameaver, Fireworks etc

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •