TITLE
Written by Luke Harrison 2009
SUMMARY



Load in a Sprite for the Wall.
Click the Load Sprite button to create a New Sprite.
Name the New Sprite.
Click the Load Sprite Button.
Browse for a Sprite and click Open.
Uncheck 'Precise Collision Checking'
On Bounding Box, Select 'Full Image'
Create a New Object of the Wall
To define a Wall, you have to make sure that the Object is a Solid Object.
If the Wall is not a Solid, your Character and other Objects won't detect it when moving and pass through it. .
Create a New Object
Give the New Object the Wall Sprite.
Check the Solid Option in the Object Settings
Add a Collision Event with the Wall on the Character Object
You will need to use a Collision Event to stop your character getting stuck in walls.
This Collision Event will be added to your Character Object. .
Open your Character Object
Click Add Event
Select Collision and Choose your Wall Object from the List
Add a 'Move to Contact Direction' Action to the Collision Event
For example, if a character lands on the floor but the collision point is half way in the floor.
This Action will move the character back out of the floor to the top of it when the collision takes place.
This is done by reversing the object in the direction it came from until it is not coliding no more.
Select the 'Move' Tab.
Add the 'Move in Direction' Action
Set Direction as, direction
Set Maximum as, 12
Leave Against, set as, Solid Objects
Create a New Room
Click the New Room Button
Click the Objects Tab
From the Drop Down Box, Choose the Wall Object you just created
Hold down shift to draw the Walls into your Level on the Grid
From the Drop Down Box, Choose the Character
Click on the Grid to add the Character into the Level
Click the Tick at the Top Left of the Room Window to finish editing your room