For all of your programming needs and wants.

  • Post new topic
  • Reply to topic

Favorite Function(s)?

Share

SoulRed12
Moderator
Moderator

Posts: 129
Join date: 2009-05-08
Age: 19
Location: West-coast USA

Favorite Function(s)?

Post by SoulRed12 on 11/1/2009, 5:06 pm

Mine's place_meeting(x,y,object). So versatile and useful; everyone who's read my "why not to use solid" article on my blog will also know why I like that function so much.

What's yours?

Tirade
Stranger
Stranger

Posts: 11
Join date: 2009-10-30

Re: Favorite Function(s)?

Post by Tirade on 11/2/2009, 12:23 am

Mine is one I added "create_object_ext(x,y,obj,speed,direction)" Its nice not to have to write that extra little bit to get the same results.

SoulRed12
Moderator
Moderator

Posts: 129
Join date: 2009-05-08
Age: 19
Location: West-coast USA

Re: Favorite Function(s)?

Post by SoulRed12 on 11/2/2009, 7:38 pm

That's pretty neat. I didn't even think of custom made functions.

My favorite that I wrote to make my own life easier were probably my HitWall function (which checked dynamically for wall collisions taking into account one-way platforms WITHOUT the need of a second wall object) and TurnAngle (which turned an angle to a destination angle while being able to transverse the 359-0 boundary).

John
Admin
Admin

Posts: 221
Join date: 2009-04-20
Location: U.S.A.

Re: Favorite Function(s)?

Post by John on 11/2/2009, 7:39 pm

I made my own grid drawing function. I actually made it into a D&D action as well. It's annoying to have to type up those two for statements to get the simple result of a grid.

Hip hip for making life easier! Razz

Tirade
Stranger
Stranger

Posts: 11
Join date: 2009-10-30

Re: Favorite Function(s)?

Post by Tirade on 11/2/2009, 9:33 pm

Just remembered another favorite that I made 'draw_rectangle_sprite_mouse(sprite,image,color,alpha)'
It was for rts games, it draws a rectangle for selecting units but makes the rectangle's lines a certain sprite.

Vivi_IX
Stranger
Stranger

Posts: 36
Join date: 2009-11-04
Age: 19
Location: USA: Painesville, Ohio

Re: Favorite Function(s)?

Post by Vivi_IX on 11/3/2009, 10:31 pm

My most favorite function would be any of the string functions but to be more specific string_copy and string_replace_all. Very usefull when always working with strings.

I don't have many custom scripts but I guess my favorite would be text_to_bytes. It just converts every letter in a string into bytes to make secret yet not-so-secret messages.

dixee
Moderator
Moderator

Posts: 133
Join date: 2009-10-27
Age: 18
Location: Orange County

Re: Favorite Function(s)?

Post by dixee on 11/6/2009, 1:35 am

Mine too is place_meeting(x,y,obj). It is by far the one I use most often.


_____________________
♥ ♥ ♥
  • Post new topic
  • Reply to topic

Current date/time is 11/29/2009, 5:20 am