| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
what I have for gravity is
Code:
onClipEvent (enterFrame) {
if (ground == "true") {
} else {
setProperty ("/bird", _y, Number(getproperty("/bird", _y))+10);
x_value = getproperty("/bird", _x);
y_value = getproperty("/bird", _y);
}
}
Code:
flag = this.hitTest("/bird");
if (flag == true) {
tellTarget ("/") {
gotoAndStop ("hit");
}
}
if (flag == true) {
tellTarget ("/grav") {
ground = "true";
}
}
now... this works... but it's not very effective... I can't ever make enemies affected by gravity... I was hoping there is an easier, more practical way.... can any body help? ![]() |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scrolling in my game?? | TheGreatOne | ActionScript 2.0 | 1 | 12-16-2004 07:00 AM |
| The good ol' "Yugop" side scrolling Menu! | Deadhands | ActionScript 1.0 (and below) | 2 | 12-18-2003 06:04 AM |
| classes server, client side with flashcom | brusky | Flash Media Server | 0 | 08-12-2003 04:20 AM |
| Side scrolling artbased platform game | buzza_gts | Gaming and Game Development | 5 | 04-09-2003 06:46 AM |
| Scrolling Edges (like a side scroller or RTS game) | archonix | Gaming and Game Development | 0 | 04-08-2003 01:03 AM |