Waterpools#97
Open
theflamer12 wants to merge 4 commits into
Open
Conversation
1406dce to
cc52d5a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.