Mailing List
Home
Forum Home
MUD Dev - Discussion of MUD system design, development, and implementation
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
smooth scrolling/subpixel tweening

smooth scrolling/subpixel tweening

2003-11-23       - By vaccaro3@(protected)

 Back
Reply:     1     2     3  

Hi all

I'm a beginner/intermediate at lingo programming, and I'm working on a
game where the character can jump up/forward/backwards in a set arc. I've
got the code for that pretty much working, but the problem is he jumps at
the speed of light. I'm not all familiar with Director, so what would be
the optimal way of slowing down and maybe interpolating this movement?
Awhile ago I saw an article on DOUG, I believe, that talked about subpixel
movement, but I can't find it anywhere. Also, is calculating the parabola
for the jump a justified solution, or is there a simpler method?

Any advice on this or any other game logic is greatly appreciated, thanks.

-b


the code I'm using (numbers are hardcoded for the moment):

on jump jumpDir
 -- jumpDir:
 -- 1 = left   -1 = left   0 = up

 pX = 0

 repeat with pCount = 0 to 10

   pX = pCount
   pY = (-0.32 * power(abs(pX - 5), 2))  + pB

   my.locV = GroundPos - (pY * 25)

   if jumpDir <> 0 then
     my.locH = my.locH - (jumpDir * (pCount * inc))
   end if
   updatestage
 end repeat
end




__ ____ ____ ____ ____ ____ ____ ____ ____ ____
dirGames-L mailing list  -  dirGames-L@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l

Earn $52 per hosting referral at Lunarpages.