MouseJoint:setTarget

MouseJoint:setTarget Sets the target point. Function Synopsis MouseJoint:setTarget( x, y ) Arguments number x The x-component of the target. number y The y-component of the target. Returns Nothing. See Also MouseJoint

Object:type

Object:type Gets the type of the object as a string. Function Synopsis type = Object:type() Arguments None. Returns string type The type as a string. Examples Printing the type of an object image = love.graphics.newImage("test.png") print(image:type()) -- outputs: Image source = love.audio.newSource("test.ogg") print(source:type()) -- outputs: Source See Also Object

Object:typeOf

Object:typeOf Checks whether an object is of a certain type. If the object has the type with the specified name in its hierarchy, this function will return true. Function Synopsis b = Object:typeOf( name ) Arguments string name The name of the type to check for. Returns boolean b True if the object is of the specified type, false otherwise. Examples Checking the type of an object image = love.graphics.newImage("test.png") print(image:typeOf("Object")) -- outputs: true print(image:typeOf(

ParticleSystem:clone

ParticleSystem:clone Available since LÖVE 0.9.1 This function is not supported in earlier versions. Creates an identical copy of the ParticleSystem in the stopped state. Function Synopsis particlesystem = ParticleSystem:clone( ) Arguments None. Returns ParticleSystem particlesystem The new identical copy of this ParticleSystem. Notes Cloned ParticleSystem inherit all the set-able state of the original ParticleSystem, but they are initialized stopped. See Also ParticleSystem

ParticleSystem:count

ParticleSystem:count Removed in LÖVE 0.9.0 It has been renamed to ParticleSystem:getCount. Gets the amount of particles that are currently in the system. Function Synopsis count = ParticleSystem:count( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem

ParticleSystem:emit

ParticleSystem:emit Available since LÖVE 0.9.0 This function is not supported in earlier versions. Emits a burst of particles from the particle emitter. Function Synopsis ParticleSystem:emit( numparticles ) Arguments number numparticles The amount of particles to emit. The number of emitted particles will be truncated if the particle system's max buffer size is reached. Returns Nothing. Examples Spawn a bunch of particles This example will create a burst of particles when the spacebar

ParticleSystem:getAreaSpread

ParticleSystem:getAreaSpread Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the area-based spawn parameters for the particles. Function Synopsis distribution, dx, dy = ParticleSystem:getAreaSpread( ) Arguments None. Returns AreaSpreadDistribution distribution The type of distribution for new particles. number dx The maximum spawn distance from the emitter along the x-axis for uniform distribution, or the standard deviation along the x-axis for normal

ParticleSystem:getBufferSize

ParticleSystem:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of particles the ParticleSystem can have at once. Function Synopsis size = ParticleSystem:getBufferSize( ) Arguments None. Returns number size The maximum number of particles. See Also ParticleSystem ParticleSystem:setBufferSize ParticleSystem:getCount

ParticleSystem:getColors

ParticleSystem:getColors Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the series of colors applied to the particle sprite. Function Synopsis r1, g1, b1, a1, r2, g2, b2, a2, ..., r8, g8, b8, a8 = ParticleSystem:getColors( ) Arguments Nothing. Returns number r1 First color, red component (0-255). number g1 First color, green component (0-255). number b1 First color, blue component (0-255). number a1 First color, alpha component (0-255). number r2

ParticleSystem:getCount

ParticleSystem:getCount Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:count. Gets the number of particles that are currently in the system. Function Synopsis count = ParticleSystem:getCount( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem ParticleSystem:getBufferSize