The Team Jackulator Forums
April 19, 2024, 05:22:45 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   
   Home   Help playlist Arcade Search Media Downloads Login Register  
The Jackulator 9000 Forums
Pages: [1]   Go Down
  Send this topic  |  Print  
This topic has not yet been rated!
You have not rated this topic. Select a rating:
Author Topic: Action script  (Read 1842 times)
0 Members and 1 Guest are viewing this topic.
CallMeBronco
I'm Mr. Buznik's dick
MEGAMEMBER
Team Jackulator
****
Offline Offline

Location: I don't know
Posts: 2472

I'm dead! Help me out! I'm dyin' here!


Awards
« on: December 11, 2009, 01:19:34 pm »

Do you know anything about Action script 2.0 Sir?  I cant remember. U must use Flash

in case you do, Im trying to make a game where balls bounce around the stage. (with the script obviously, not with tweens) I know a little bit, enough to make my balls ( cheesy) move to the right, hit the wall and reverse once but that's it.

more specifically I want a code that makes the ball hit objects and ricochet off in the appropriate direction.
Logged

my jackulator tribute video: https://www.youtube.com/watch?v=mtbIpQTjH7M



"Nothing worth having comes without some kind of fight" - Bruce Cockburn



jackulator
... --- ...
Administrator
jackulator.com
******
Offline Offline

Location: Eastwick, Rhode Island
Posts: 10507


"Twenty pushups a day..."


WWW Awards
« Reply #1 on: December 11, 2009, 06:34:58 pm »

it's actually not that hard -- you have to make variables for horizontal and vertical speed, and to reverse the direction  you just multiply by negative 1

check out the attached FLA file

* bouncingBall.fla (64 KB - downloaded 85 times.)
Logged

CallMeBronco
I'm Mr. Buznik's dick
MEGAMEMBER
Team Jackulator
****
Offline Offline

Location: I don't know
Posts: 2472

I'm dead! Help me out! I'm dyin' here!


Awards
« Reply #2 on: December 11, 2009, 11:01:15 pm »

I asked Sir, NOT YOU ohaha, just kiddin'  cheesy

thanks! Ive read it and think Im getting it, slow but sure. I did copy/paste part of the code I needed though, and level 3 in my game works great now! At least I have a moving enemy. Ill fiddle around myself and see what else I can get it to do. thanks for the help
Logged

my jackulator tribute video: https://www.youtube.com/watch?v=mtbIpQTjH7M



"Nothing worth having comes without some kind of fight" - Bruce Cockburn



Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  



Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.54 seconds with 20 queries.