A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 40 of 40

Thread: Side Scroll Discussion

  1. #21
    Banned By GMF Wannabe Gambini's Avatar
    Join Date
    Oct 2000
    Posts
    976
    Could somebody explain how an "array" works in flash and how it can be applied - I think the points coming out on this discussion are excellent but I'm still a little hazy about arrays in flash.

    A tutorial would be great!!

  2. #22
    I agree with Gambini a tute would be awesome

  3. #23
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Read up on arrays by searching for these topics in flash’s AS dictionary:

    Dot and array access operators: page 57 in the ActionScript Reference Guide
    Array (object): page 214 in the ActionScript Reference Guide

    This is probably the best way to learn how to use arrays, after you read up I will be glad to answer an other question you have. Also I can then explain multiple dimensional arrays.

    Good luck!

  4. #24
    OK I'll check that out

  5. #25
    I can't seem to find those is the reference, what do i search for??

  6. #26
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Dot and array access operators
    page 57 in the ActionScript Reference Guide

    Array (object)
    page 214 in the ActionScript Reference Guide

    K!

    You can also download the manuals and reference guide at the Macromedia site if you don’t have them

    http://www.macromedia.com/support/flash/


    [Edited by FlashCat on 11-24-2000 at 04:44 PM]

  7. #27
    Senior Member
    Join Date
    Sep 2000
    Posts
    273
    In side scrollers, hittest is kinda silly...using bounding boxes with the getBounds method works MUCH better...it's what I used in my footer below, but my jumping isn't all that great.

    Spyder

  8. #28
    Senior Member
    Join Date
    Jul 2000
    Posts
    198
    Did you see my jump demo? YOu could try that. Ill be working on another one that makes it so the longer you hold down space, the higher you jump.

  9. #29
    Senior Member
    Join Date
    Sep 2000
    Posts
    273
    When I click the link, I get an error and it won't let me DL it

    spyder

  10. #30
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Ok guys more events added:

    [swf width="200" height="100" background="#FFDDBB"]http://savco.virtualave.net/tut/ladder.swf[/swf]
    http://savco.virtualave.net/tut/ladder.zip

    1. collect the coins
    2. find the gold key
    3. after you get the key find the hidden door to the next level. ( no actual next level though )

    Mad_sci

  11. #31
    Senior Member
    Join Date
    Jul 2000
    Posts
    198
    Give me your email, and ill just email it to you.

  12. #32
    Senior Member
    Join Date
    Sep 2000
    Posts
    273

  13. #33
    Senior Member
    Join Date
    Jul 2000
    Posts
    198
    Ok. I shal send it to you.

  14. #34
    Member
    Join Date
    Nov 2000
    Posts
    30

    Accessing the files you guys create...

    How do I get to the things you guys post?

    I can't see any links in you posts to the boards, yet you mention 'the above flash file' etc...

    HELP!!!!!!

  15. #35
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Look at page 2 of this post the first and the last post
    here is the fla.
    http://savco.virtualave.net/tut/ladder.zip
    for my example.

    mad_sci

  16. #36
    Member
    Join Date
    Nov 2000
    Posts
    30
    Thanks mad_sci,

    You file is excellent in the way it lets you see just how things work. It has confirmed some of the things I have been working on, but looking at you simple code enabled me to cut down the acmount of crap I had in my files into cleaner more efficient code.

    I only found out from your file that 'hittest' actually prevents the object that has collided with it from moving past it. I was racking my brains out on how to get collision detection in the form of a doorway that detects when the user enters the doorway and then plays an 'end of level' movie. The code I had detects when they are in the door, but wouldn't let them go through it. The answer is to put the dorr in a movie clip with 2 frames. The first frame has the door object in it and the second has nothing in it. When the user collides with the door, I use tell target to tell the door to go to frame 2, and the user walks through!!!!

    Jeez, it's easy but only when you've tried to walk around the problem... If the only the mannuals and examples described the consequences of such actions better.

    Anyway, thanks for letting us see the file!!!!

    Fantastic!!!!

  17. #37
    Member
    Join Date
    Aug 2000
    Posts
    83
    Hey Booya Climber- Could you please send me the file, too?
    Thanks.
    [email protected]

    By the way, NetSpyder101, you never sent me the side-scroller stuff.

  18. #38
    Junior Member
    Join Date
    Nov 2000
    Posts
    29
    I'm sure your getting lots of request for that file but I would love to learn from it.

    [email protected]

    Thanks

  19. #39
    Senior Member
    Join Date
    Jun 2000
    Posts
    435
    Hehe Mad-Sci nice job!

  20. #40
    Senior Member Mad-Sci's Avatar
    Join Date
    Mar 2000
    Posts
    2,756
    Hey kitty, how was the vacantion ? Ok it seems this topic is amost death so check this before we switch to something else:
    http://savco.virtualave.net/tut/game.htm

    Ciao,
    Mad-sci

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center