-
Notifications
You must be signed in to change notification settings - Fork 0
class_particles2d
reduz edited this page Feb 23, 2014
·
11 revisions
####Inherits: Node2D ####Category: Core
- void
set_emitting( bool active ) -
bool
is_emitting( ) const - void
set_amount( int amount ) -
int
get_amount( ) const - void
set_lifetime( real lifetime ) -
real
get_lifetime( ) const - void
set_time_scale( real time_scale ) -
real
get_time_scale( ) const - void
set_pre_process_time( real time ) -
real
get_pre_process_time( ) const - void
set_emit_timeout( real value ) -
real
get_emit_timeout( ) const - void
set_param( int param, real value ) -
real
get_param( int param ) const - void
set_randomness( int param, real value ) -
real
get_randomness( int param ) const - void
set_texture( Object texture ) -
Texture
get_texture( ) const - void
set_emissor_offset( Vector2 offset ) -
Vector2
get_emissor_offset( ) const - void
set_flip_h( bool enable ) -
bool
is_flipped_h( ) const - void
set_flip_v( bool enable ) -
bool
is_flipped_v( ) const - void
set_emission_half_extents( Vector2 extents ) -
Vector2
get_emission_half_extents( ) const - void
set_color_phases( int phases ) -
int
get_color_phases( ) const - void
set_color_phase_color( int phase, Color color ) -
Color
get_color_phase_color( int phase ) const - void
set_color_phase_pos( int phase, real pos ) -
real
get_color_phase_pos( int phase ) const - void
pre_process( real time ) - void
set_use_local_space( bool enable ) -
bool
is_using_local_space( ) const - void
set_initial_velocity( Vector2 velocity ) -
Vector2
get_initial_velocity( ) const - void
set_explosiveness( real amount ) -
real
get_explosiveness( ) const - void
set_emission_points( Vector2Array points ) -
Vector2Array
get_emission_points( ) const
- PARAM_DIRECTION = 0
- PARAM_SPREAD = 1
- PARAM_LINEAR_VELOCITY = 2
- PARAM_SPIN_VELOCITY = 3
- PARAM_GRAVITY_DIRECTION = 5
- PARAM_GRAVITY_STRENGTH = 6
- PARAM_RADIAL_ACCEL = 7
- PARAM_TANGENTIAL_ACCEL = 8
- PARAM_INITIAL_SIZE = 10
- PARAM_FINAL_SIZE = 11
- PARAM_HUE_VARIATION = 12
- PARAM_MAX = 13
- MAX_COLOR_PHASES = 4