Thanks.
Does anyone know how I could instead as each power is created, call it from file.. For example:
Private Sub CreatePowerUp (gs As X2GameStep)
Dim powerbody As X2BodyWrapper = TileMap.CreateObject2ByName(ObjectLayer, "power")
powerbody.Body.SetTransform(X2.CreateVec2(X2.RndFloat(WorldWidth * PositionA, WorldWidth * PositionB), WorldHeight), 0)
powerbody.Body.LinearVelocity = X2.CreateVec2(0, -4)' X2.RndFloat(-6, -2))
End Sub
Private Sub CreatePowerUp (gs As X2GameStep)
Dim powerbody As "IMAGE FROM FILE HERE"
powerbody.Body.SetTransform(X2.CreateVec2(X2.RndFloat(WorldWidth * PositionA, WorldWidth * PositionB), WorldHeight), 0)
powerbody.Body.LinearVelocity = X2.CreateVec2(0, -4)' X2.RndFloat(-6, -2))
End Sub
Ideally set the size too.