Glad it helped!
By default push and group are set to 0 for all entities... So make sure to set them high for all obstacles.
Because c_move with IGNORE_PUSH will ignore everything with same or smaller push and group values...
#define OBSTACLE_GROUP 10
void main()
{
level_load("level.wmb");
if(level_ent)
{
// we set group/push for level blocks
level_ent->group = OBSTACLE_GROUP;
level_ent->push = OBSTACLE_GROUP;
}
}
Greets!