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 2.2.5

Added 3 new sprite functions- sprite_framesecond(index) Returns the sprite's framerate converted to frames/second, if the sprite is in frames/second already, returns nothing.

sprite_gameframe(index) Returns the sprite's framerate converted to frames/gameframe, if the sprite is in frames/gameframe already, returns nothing.

sprite_get_runtime() Returns the runtime of the animation in gameframes of the calling object. Factors in image_speed (EXPERIMENTAL)(KIND OF)

Version 2.2.5. Published June 11, 2017

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Jonas Z 06 May 2017

I highly recomend cause it saves time

classic all day use scripts made easy ! I will send soon a few of mine too so you can add more ! If you like !:)

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

Logo

Black Smite (Publisher) 06 May 2017

Thanks for the review.

What I would like is for you to send me names and functions of the scripts and I'll try to make them myself. It would be a fun challenge. :D
just send stuff to
THEhippo702@gmail.com.
Cheers!


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.

What is the issue?

Back to Top