(sprite "images/objects/bonus_block/brick.sprite")
)
(scriptedobject
+ (name "foo")
+ (z-pos 0)
+ (visible #t)
+ (physic-enabled #t)
+ (solid #t)
+ (x 640)
+ (y 320)
+ (sprite "images/objects/bonus_block/brick.sprite")
+ )
+ (scriptedobject
+ (name "door2")
+ (z-pos 0)
+ (visible #t)
+ (physic-enabled #f)
+ (solid #t)
+ (x 320)
+ (y 256)
+ (sprite "images/objects/bonus_block/brick.sprite")
+ )
+ (scriptedobject
(name "door1")
(z-pos 0)
(visible #t)
(sprite "images/objects/bonus_block/brick.sprite")
)
(scriptedobject
- (name "door2")
+ (name "foo")
(z-pos 0)
(visible #t)
(physic-enabled #f)
(solid #t)
- (x 320)
- (y 256)
+ (x 608)
+ (y 352)
+ (sprite "images/objects/bonus_block/brick.sprite")
+ )
+ (scriptedobject
+ (name "foo")
+ (z-pos 0)
+ (visible #t)
+ (physic-enabled #f)
+ (solid #t)
+ (x 544)
+ (y 352)
(sprite "images/objects/bonus_block/brick.sprite")
)
(tilemap
lisp.get("visible", visible);
lisp.get("z-pos", layer);
if( solid ){
- set_group( COLGROUP_MOVING );
+ if( physic_enabled ){
+ set_group( COLGROUP_MOVING );
+ } else {
+ set_group( COLGROUP_STATIC );
+ }
} else {
set_group( COLGROUP_DISABLED );
}
{
this->solid = solid;
if( solid ){
- set_group( COLGROUP_MOVING );
+ if( physic_enabled ){
+ set_group( COLGROUP_MOVING );
+ } else {
+ set_group( COLGROUP_STATIC );
+ }
} else {
set_group( COLGROUP_DISABLED );
}