Difference between revisions of "SpriteBatch:setImage"

(setImage should have its own wiki page!)
 
(Added oldin)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{newin|[[0.7.2]]|072|type=method}}
 +
{{oldin|[[0.10.0]]|100|type=function|text=Use [[SpriteBatch:setTexture]] instead}}
 
Replaces the image used for the sprites.
 
Replaces the image used for the sprites.
 
== Function ==
 
== Function ==
Line 11: Line 13:
 
== See Also ==
 
== See Also ==
 
* [[parent::SpriteBatch]]
 
* [[parent::SpriteBatch]]
 +
* [[SpriteBatch:getImage]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Replaces the image used for the sprites.}}
 
{{#set:Description=Replaces the image used for the sprites.}}
{{#set:Since=072}}
 
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|SpriteBatch:setImage}}
 
{{i18n|SpriteBatch:setImage}}

Latest revision as of 03:02, 17 December 2015

Available since LÖVE 0.7.2
This method is not supported in earlier versions.
Removed in LÖVE 0.10.0
Use SpriteBatch:setTexture instead.

Replaces the image used for the sprites.

Function

Synopsis

SpriteBatch:setImage( image )

Arguments

Image image
The new Image to use for the sprites.

Returns

Nothing.

See Also

Other Languages