Table of Contents

 
SetTileBlock
 

Purpose

Sets the current tile's collision setting

 

Protoype

void CTileMngr::SetTileBlock (int i_block)
 

Parameters

block whether to BLOCK or make it UNBLOCKED
 

Description

This function sets the block setting of a tile. Tile blocking allows you to control whether or not game objects can pass over tiles (however the map itself will not prevent any game objects from passing over a blocked tile). Pass in BLOCK to block a tile and UNBLOCKED to unblock it

NOTE: In order for the function to work you must have a tile locked with either LockTileRC() or LockTileXY()

 

Use

CTileMngr tile_mngr;
tile_mngr.SetTileBlock(BLOCK);
 

Prev: SetScroll