[object_type]
id="fountain_of_health"
on_create="[add_particles('water_droplets'),spawn('sfx_falloff_generator',midpoint_x,midpoint_y,1,[set(effect_name,'ambient/fountain-small.ogg'),set(x_bound,x-50),set(x2_bound,x+50),set(y_bound,y-50),set(y2_bound,y+50),set(max_volume,40),set(master_volume,64)])]"
on_end_normal_anim="animation('normal')"
on_interact="if(level.player.hitpoints < level.player.max_hitpoints, [spawn('heart_object',level.player.midpoint_x,level.player.midpoint_y,1),
		if(level.player.hitpoints < level.player.max_hitpoints - 1, schedule(20,fire_event('interact'),))])"
platform_area="6,32,43,33"
zorder="-3"
	[animation]
	duration="5"
	frame_info="6,8,6,0,520,562,36,40,6,8,6,0,556,562,36,40,6,8,6,0,592,562,36,40,6,8,6,0,628,562,36,40"
	frames="4"
	id="normal"
	image="compiled-1.png"
	interact_area="all"
	rect="514,554,561,601"
	[/animation]

	[particle_system]
	accel_y="230"
	id="water_droplets"
	max_x="50"
	max_y="28"
	min_x="35"
	min_y="20"
	spawn_rate="400"
	time_to_live="47"
	type="simple"
	velocity_x="-500"
	velocity_x_random="1000"
	velocity_y="-5000"
	velocity_y_random="600"
		[animation]
		duration="8"
		frame_info="1,1,1,1,350,5,2,2,1,1,1,1,352,5,2,2,1,1,1,1,354,5,2,2,1,1,1,1,356,5,2,2,1,1,1,1,358,5,2,2,1,1,2,2,360,5,1,1,2,2,1,1,361,5,1,1,2,1,1,2,362,5,1,1"
		frames="8"
		id="sparkle"
		image="compiled-0.png"
		rect="349,4,352,7"
		[/animation]

	[/particle_system]

[/object_type]

