This is a custom built rocket-ship type movement I built for the next game I am designing. It includes (but is not limited to) : real physics thrusting forward and backward power, side to side thrust, and orbiting capabilities. This is my first widget, so any comments would be appreciated.

Thruster Widget
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
Hey there. It's pretty nice, but there's one flaw.
Object positions are integal, you can't store decimals, like 3.14159.
This will have an unwanted efffect - Imagine Y Speed is only 0.5Y("Active")+0.5 will result in Y("Active")+0!
To fix this, use 2 alterables for the position, named Float X and Float Y or so, and add the speed to it.
Then, just do:
Always
- Set X of Ship to X Float("Ship")
- Set Y of Ship to Y Float("Ship")That should work fine
Oh, and another thing.
Replace things like
horz thrust( "Thruster Widget" )*Cos(horz angle( "Thruster Widget" ))/50
by
horz thrust( "Thruster Widget" )*Cos(horz angle( "Thruster Widget" ))/50.0
So the movement will be smoother, cause /50 will result in an integer, no decimals. -
Thanks, Looki! I had no idea about the automatic integer division when the .0 is not added! Anyway, here is the updated version.
-
Okay.
..but I forgot one thing: Remove Every 00'05 from each event, and lower the parameter of the actions that increase/decrease the "horz" thrust variable. It's set to 1, change it to 0.2 or so. That should look much better. -
Thanks for all your help, Looki, its much smoother movement now.
-
Good work, Skeets.
stephen1980
-
You're welcome
There still are "Every 00'05" events though :confused: -
-
those "Every 00'05" events are for slower acceleration rates. They don't affect the 'smoothness' of the movement.
-
OK, I found a rather large bug where the spaceship's side thrusters max speed didn't work, here is the final (hopefully) version.
-
-
is there any chance i could give this a try please? the mfa seems to be 0 bytes.
-
I pm'd you a link to my website for the download.
Marv
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!