The Daily Click ::. Forums ::. Klik Coding Help ::. Question about axel's ev-nova engine
 

Post Reply  Post Oekaki 
 

Posted By Message

YA Superhero



Registered
  10/09/2007
Points
  7
18th September, 2007 at 09:35:24 -

Hello all,

How would I go about putting a speed cap on this? I just don't want my ships to go flying around faster than light.


Thanks

 
n/a

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
18th September, 2007 at 09:45:43 -

The X and Y velocities are just held as 2 variables. Find which variables, and cap them.

For example, create an event that says:
(If XVelocity > 10000) then (set XVelocity to 10000)
and likewise for Y

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

YA Superhero



Registered
  10/09/2007
Points
  7
18th September, 2007 at 09:53:03 -

Yeah, I've tried that but it gets a little funky, If I don't stop the Y along with the X then the ships starts going in a direction it's not pointing, And then I had some trouble with stopping for some reason the speed would never go down if I did that.

Maybe I'm doing something wrong. Any ideas?

 
n/a

YA Superhero



Registered
  10/09/2007
Points
  7
18th September, 2007 at 10:05:30 -

Thanks! I'll give it a try and let you know.

many many thanks!

 
n/a

YA Superhero



Registered
  10/09/2007
Points
  7
18th September, 2007 at 10:33:23 -

I still get the same problem, If the ship goes at an angle like 70, the X (alt value E) will max out, but the Y (alt value F) will keep increasing to it's max, and send the ship moving in a direction that it's not pointing.

is this fixable?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click