0 members and 7,223 guests
No Members online

» Site Navigation
» Stats
Members: 35,442
Threads: 103,075
Posts: 826,688
Top Poster: cc.RadillacVIII (7,429)
|
-
In this tutorial you need:
Flash MX
Well this is about making an object moving through the scene!
Not with Motion Tween - With Actionscript(AS).
So let's begin!
Step I
Make a new Flash Document.
Create a ball with the ellipse tool.
Step II
Now this is where the fun begins!
Select you ball and make it a Movieclip(MC) by pressing F8 on your keyboard.
Name it like "Ball" or "Circle" or something(doesn't really matter).
Step III
In the bottom on your workspace it should be a tab called "Actions - Objects".
Click it.
Now the tab should "pop" up(not like a internet pop-up).
Click on your ball and write:
Code:
onClipEvent(enterFrame){
* * * this._y --;
}
So time for some explanation!
Code:
onClipEvent(enterFrame)
What this does is that it enters a frame at the frame rate that the user specified(you can see it under your timeline ).
Double click it to change it(i recommend 30FPS).
The code above says to the object to move to the direction Y-, and that is Up.
I'll show you how it works in Flash.
---------------------------------------------
|
As you can see, the Flash way, Y Directions is Mirrored.
I don't really get that myself, but i can live with it. :lol:
So test your movies out and have fun!
I hoped you learned something!
Til' next time! B)
Result:
(Click here if you want to see my result)
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

-
good job, i think i got enough in my brain to figure out how to use flash mx on my thanks alot for your help.
-
lol i had a tut on how to make realistic gravity, but it's been so long since i've used flash i can't remember...lol ill work on it tho
-
The thing you need to know is math..
I know how to make a Physics engine.
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

-
so do i...i just can't remember at the moment lol...anywayz i have to leave for a concert right meyaw so c ya
-
cya
[kinda empty so i'll add this]
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

-
Hmm, good tutorial for beginners, though it is very simple. I'd be interested in seeing that physics engine. Also, you were wrong on the x & y axis. Flash doesn't mirror it, it just mirrors the Y axis. You are wrong on the x axis normally. The x axis always goes from left to right, ascending.
If you want help...
Screw you
If you make sigs...
Screw you
-
The flash(i like calling it like that) mirrors it. In visual Basic(in my understanding) X- Is left. In flash it is X+.
And as the title says; Simple Actionscripting.
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

-
I wasn't bagging on you for it being simple, thats fine, you don't have to defend yourself. And i don't know about visual basic, but in normal, real life, X+ is going to the right. Think about algebra 1, remember plotting graphs and stuff? Heres some links
http://srmwww.gov.bc.ca/risc/pubs/teecolo/...ssets/hmgf6.gif
http://members.jcom.home.ne.jp/maegawa/pub...s-d/xy2ps-3.png
http://www.pen.k12.va.us/Div/Winchester/jh...ebra/grapha.jpg
If you still dont believe me, just go to google and search "X and Y axis".
If you want help...
Screw you
If you make sigs...
Screw you
-
um.. test it for youself.. if you write :
Code:
onClipEvent(enterFrame){
this._y --;
}
It's going up... and those algebra graphs show that y- is down... test it and you'll see...
We misunderstood eachother.. hehe and i wrote wrong above your post... hehe...
Sorry.. :unsure:
Noooooo! My old signature is gone! Gone forever!!!
*sniff* 
New one!

Similar Threads
-
By Tyson in forum Sigs & Manips
Replies: 8
Last Post: 08-26-2005, 10:16 AM
-
By *Peng* in forum Sigs & Manips
Replies: 5
Last Post: 07-15-2005, 02:38 PM
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
|