Description

A few extra functions that are useful,a few of them are-

-percent_chance(chance) eg. if(percent_chance(50)); { //Do something } there is a 50% chance this will return true.

-approach(variable, target, increment/decrement) eg. Imagine that x = 10 and y = 20 Step Event: x = approach(x,y,1); This will add 1 to x each step until it is equal to y. or y = approach(y,x,1); this will subtract 1 from y each step until it is equal to x

-rotate_towards_point(currentangle,targetangle,rotationspeed) eg. var mangle = point_direction(x,y,mouse_x,mouse_y); image_angle = rotate_towards_point(image_angle, mangle,5); This will smoothly rotate the image to the mouse with a rotation speed of 5.

-move_flee(x,y) The opposite of move_towards_point(x,y) moves away from the given x & y

+More!

End User Licence Agreement (EULA).

Changes in 1.7.0

+Added move_orbit script(not working properly yet)

Version 1.7.0. Published April 15, 2017

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Alex M 05 April 2017

Quite Useful!

Thanks for sharing!

This review was left for a previous version of this asset.

Logo

Black Smite (Publisher) 06 April 2017

Thanks for the great review!
If you'd like to see any scripts in here, you can write that down here too.
Thanks again!


Gravatar

Anonymous 05 April 2017

Very useful

Thanks for sharing these scripts.

This review was left for a previous version of this asset.

Logo

Black Smite (Publisher) 05 April 2017

Thanks for the positive review. If you want any scripts to be added, you can request them too.

Package contents

Total size 8.49 KB

What is the issue?

Back to Top