Creates a new Bob in this Blitter.
The Bob is created at the given coordinates, relative to the Blitter and uses the given frame. A Bob can use any frame belonging to the texture bound to the Blitter.
name | type | arguments | Default | description |
---|---|---|---|---|
x | number |
The x position of the Bob. Bob coordinate are relative to the position of the Blitter object. |
||
y | number |
The y position of the Bob. Bob coordinate are relative to the position of the Blitter object. |
||
frame | string | number | Phaser.Textures.Frame | <optional> |
The Frame the Bob will use. It must be part of the Texture the parent Blitter object is using. |
|
visible | boolean | <optional> | true |
Should the created Bob render or not? |
index | number | <optional> |
The position in the Blitters Display List to add the new Bob at. Defaults to the top of the list. |
The newly created Bob object.