|
-
Banned By GMF Wannabe
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!!
-
I agree with Gambini a tute would be awesome
-
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!
-
-
I can't seem to find those is the reference, what do i search for??
-
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]
-
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
-
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.
-
When I click the link, I get an error and it won't let me DL it 
spyder
-
Senior Member
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
-
Give me your email, and ill just email it to you.
-
-
Ok. I shal send it to you.
-
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!!!!!!
-
Senior Member
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
-
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!!!!
-
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.
-
I'm sure your getting lots of request for that file but I would love to learn from it.
[email protected]
Thanks
-
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|