Skip to content

Waterpools#97

Open
theflamer12 wants to merge 4 commits into
UltraRing:devfrom
theflamer12:waterpool-test
Open

Waterpools#97
theflamer12 wants to merge 4 commits into
UltraRing:devfrom
theflamer12:waterpool-test

Conversation

@theflamer12

Copy link
Copy Markdown

This pull requests adds water pool with other utilities.

This includes 3 brand new function, such as:

  • player_set_underwater(value, object = obj_water)
    With this function, you can set the underwater flag without worrying about the appropriate audible and visual effects. The argument value is a boolean which determines whether the underwater should be set to true or false and the optional argument object determines where the splash effect should played.

  • instance_collide_waterpool(offset_x = 0, offset_y = 0)
    This function is basically a collision_point() function but reserved to obj_waterpool. The arguments offset_x and offset_y are just to offset the point, as the names are pretty self-explanatory.

  • water_draw(x, y, w, h, color = $5b301e, anim_speed = 0.15, sprite = spr_water)
    This function is to help keep the appearance of bodies of water consistent. The first four arguments are self-explanatory. The optional arguments color, anim_speed and sprite are to change the color of the water, change the animation's speed of the water sprite and to change the said water sprite respectively.

@theflamer12 theflamer12 marked this pull request as draft May 29, 2026 11:12
@theflamer12 theflamer12 marked this pull request as ready for review May 29, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant