WorldBullet
┗> Object > Class
Methods
WorldBullet:setSprite(texture: any, speed: any, loop: any, on_finished: any)
Arguments:
texture: any | |
speed: any | |
loop: any | |
on_finished: any |
Returns:
1: Sprite |
Fields
Undocumented
WorldBullet.battle_fade: boolean
Whether this bullet gets faded in/out by the battle state
WorldBullet.collider: Hitbox
Default collider to half this object's size
WorldBullet.damage: integer
Damage given to the player when hit by this bullet
WorldBullet.destroy_on_hit: boolean
Whether this bullet gets removed on collision with the player
WorldBullet.inv_timer: number
Invulnerability timer to apply to the player when hit by this bullet
WorldBullet.remove_offscreen: boolean
Whether to remove this bullet when it goes offscreen
WorldBullet.sprite: Sprite
A simple object that renders a texture.
This texture must be placed inside assets/sprites/
.