Description

Essential Scripts is a useful collection of scripts

  • draw_text_outlined draw text with a coloured outline
  • draw_text_shadow draw text with a shadow 1px below (with colour and alpha)
  • draw_text_shadow_ext draw text with a shadow at a certain distance and in a certain direction (with colour and alpha)
  • draw_sprite_outlined draw a sprite with a coloured outline
  • draw_sprite_shadow draw a sprite with a shadow (with distance, direction, colour & alpha)
  • string_split split a given string in to a ds_list with a given "splitter string"
  • approach current value approaches target value by a given amount
  • smooth_approach smoothly approach a target value
  • angle_approach turn an angle towards a target angle with turn speed
  • percent_chance % chance to return true
  • round_chance decimal chance of rounding a number up (e.g. 1.75 has a 75% chance of returning 2)
  • set_chance % chance of returning value 1 or value 2
  • multi_chance multiple values, each value has a % chance of being returned
  • ds_list_reverse reverse a ds_list
  • ds_list_random return a random value from a ds_list
  • ds_list_delete_all remove all instances of a value from a ds_list
  • instance_list_random returns a list of instances, in a random order
  • instance_nearest_list returns a list of instances, in nearest order
  • mouse_over check if mouse is within the object's bounding box
  • stick_to stick an object to another object with x/y offset
  • stick_to_angle stick an object to another object, taking image_angle in to consideration
  • within returns true if the given variable is close enough to the given value

Scripts contain example uses and descriptions where necessary.

The list will be added to and updated continuously, and I'm open to taking new script suggestions.

Check out my other assets here: https://marketplace.yoyogames.com/publishers/584/rupert-reckless

End User Licence Agreement (EULA).

Changes in 1.1.0

Added 9 new scripts

Version 1.1.0. Published November 24, 2015

Created with GameMaker: Studio v1.4.1657

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Anonymous 02 November 2018

GMS2?

Is this compatible with GMS2? I'm getting a compatibility report when importing that I can't make sense of. Any help would be greatly appreciated!


Gravatar

Anonymous 24 September 2018


Gravatar

Jony A 21 August 2018


Gravatar

Caleb W 02 August 2018


Gravatar

Anonymous 14 July 2018


Gravatar

Dead E 07 July 2018


Gravatar

Maciej K 17 June 2018


Gravatar

Anonymous 17 June 2018


Gravatar

Anonymous 12 June 2018


Gravatar

Drake D 18 May 2018


Gravatar

Kasper C 17 April 2018


Gravatar

Anonymous 10 July 2018


Gravatar

Clint F 07 April 2018


Gravatar

Terrence Y 01 April 2018


Gravatar

Raymundo L 26 March 2018

Awesome


Gravatar

Bill G 27 January 2018


Gravatar

Anonymous 29 November 2017


Gravatar

Victor L 24 November 2017


Gravatar

David M 11 October 2017


Gravatar

Anonymous 05 August 2018

Very good!

God bless you! Now I don't have to write everything over and over again or manually import it. Just a few clicks and your scripts are installed.


Gravatar

Densos R 11 September 2017


Gravatar

Nodnarb V 19 July 2017

Thank you!

I love the insance_nearest_list script.


Gravatar

Dylan B 25 September 2017


Gravatar

Jonathan D 28 July 2017

These are so good they should be included


Gravatar

Anonymous 27 June 2017


Gravatar

Elliot K 21 June 2017


Gravatar

Anonymous 11 June 2017


Gravatar

Jordan H 03 June 2017


Gravatar

Dave F 22 May 2017


Gravatar

Tristan H 13 March 2017


Gravatar

Andrew M 23 December 2016


Gravatar

Anonymous 01 November 2016

Thanks So Much

Thanks truly for offering up some really cool scripts to learn from for free. It is always appreciated people willing to help their fellow user.


Gravatar

Gary M 19 October 2016

Excellant learning tool!


Gravatar

Anonymous 15 October 2016

Very useful

Nice examples


Gravatar

Tito A 24 February 2016

Some problems with draw_sprite_shadow

Very good package. What attracted me was the shadow script. It is not working properly. Maybe you could me help, please.
I have some problems with sprite_shadows where it draws shadow over sprites. How do I solve this?
Thank you!


Gravatar

Pim J 16 January 2016

Great collection of simple but useful scripts

Thanks a lot, it's a very nice collection of scripts. Their basic, but very useful. I especially loved string_split(), because i was making a debug console (like you have in most games, where you press the ` key and get a console to type in commands) and i couldn't figure out how to seperate the command from the parameters, like: giveitem player1 axe 2
I could only figure out how to split strings from numbers, so before your extremely simple script i could only insert one command with a number as a parameter. Now my debug console can have as many parameters as i want!


Gravatar

Shankar B 06 December 2015

Good essential scripts

Need more useful scripts. ex: text size etc.


Gravatar

omid g 24 November 2015

good asset ...

everything work perfectly .
there is only one thing that all create with script and some of those can take to much process .


Gravatar

Andrew L 28 August 2015

This is awesome!

I just have one problem though... I cant get stick_to_angle to work :-(
Can it be done with physics objects?
maybe an example would help :-)

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


Gravatar

Klemen A 01 August 2015

Some problems with draw_sprite_shadow

All and all very useful scripts. I have some problems with sprite_shadows where it draws shadow over sprites.

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


Gravatar

Andreas M 07 January 2016

Very good

I like stick to angle :-)


Gravatar

Anonymous 06 April 2015

Neat little bundle

Some useful scripts here.

Thanks for sharing.

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


Gravatar

Nate E 07 January 2016

missing example in draw_sprite_outlined

can you provide an example for this for the draw sprite outline script?

///draw_sprite_outlined(sprite, subimg, x, y, xscale, yscale, ang, colour, outline_colour)

i'm unsure what subimg is, and the proper way to use it.
Does this require redrawing for very step in an animation?


Gravatar

Waldemar R 03 March 2015

some much quality

thank you for providing this piece of software.

One can learn so much from you code.

Thank You.

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


Gravatar

Colin T 07 February 2015

Experiment with this! Don't take as gospel.

I like how you figured out a way to make a workable script out of the holygrid simplified formula. I like how you used the bbox of sprites for the mouse_over function to eliminate the need for argument inputs. I question the need for D3D to be used for your shadows, and suggest you look into ways of simplifying further. For your text outlines, you are running the risk that the draw_set_ settings you end with are the settings the programmer wants. I'd hate to have to dig up that script partway through making a game and edit it in order to fix a drawing color/alpha bug. Try draw_text_transformed_color instead of draw_text and see if that is faster or looks better. Consider cutting down on vars, and initializing them all on a single line. This has improved fps in my experience. I hope this helps everyone and good luck!

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


Gravatar

Morne B 24 December 2014

nice sprite outline script

The sprite outline script works great, I didn't know we could use d3d like this.

These should really become standard GMS functions!

Thanks

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

Package contents

Loading, please wait

What is the issue?

Back to Top