Kraken Logo

Kraken Engine

DocumentationGuidesShowcaseCommunity
Ctrl
K
Navigating the Docs
Building Docs
Overview
Anchor
AnimationController
Audio
Batcher
Body
Camera
Capsule
CastHit
CharacterBody
Circle
Collision
Color
DistanceJoint
Effect
Event
FilterJoint
Flip (Texture)
Font
ImageLayer
InputAction
Joint
Layer
Line
Map
MapObject
Mask
MotorJoint
MouseJoint
ObjectGroup
Orchestrator
PixelArray
PolarCoordinate
Polygon
PrismaticJoint
Rect
RevoluteJoint
RigidBody
Sample
Sampler
Shader
SheetStrip
StaticBody
Stream
Style
Terrain (TileSet)
Text
TextProperties
Texture
Tile (TileLayer)
Tile (TileSet)
TileLayer
TileResult (TileLayer)
TileSet
Timer
Transform
Tween
Vec2
Vertex
WeldJoint
WheelJoint
World

Built bydurkisneer1.Kraken Engine is open source and available onGitHub.

  1. Docs
  2. Classes
  3. Object Group

ObjectGroup

ObjectGroup is a layer containing placed MapObjects. Access via the 'tilemap' submodule.

Inherits from Layer.

Properties


NameDescriptionType
colorTint color for non-tile objects.Color
opacityLayer opacity from 0.0 to 1.0.float
draw_orderDrawing order for objects in the group.ObjectGroup.DrawOrder
objectsMapObjectList of objects in the group.MapObjectList

Methods


Draw

draw(angle: float = 0.0, pivot: Vec2 = ...) → Nonedraw(angle: float = 0.0, pivot: Vec2 = ...) → None

Draw the object group.

Args

  • angle : Rotation angle in degrees. Defaults to 0.0.
  • pivot : Rotation pivot as normalized coordinates relative to the map size. Defaults to (0.5, 0.5).
PreviousMouseJoint
NextOrchestrator

On this page

PropertiesMethodsDraw