Game Development Reference
In-Depth Information
The following screenshot shows the road in the process of being shaped with the
Reshape tool:
Once all of the shapes are in the proper place to be a simplified copy of the background
image, our collision mask is complete.
We will add a small script to the mask to properly place it and make it invisible. The scripts
that we add soon will sill respond to the collision mask, but the players will see the much
beter-looking Backdrop image:
1. Go to the Scripts tab of the collision mask.
2. Start the script with a when <green lag> clicked block.
3. Place the mask at the center of the stage with a go to x: () y: () block; fill in the value
0 for both the empty slots. If the placement looks off center after running the script,
also check whether the center point of the sprite is placed at the absolute center of
the image.
4. Add a go back () layers block; fill in the value 100 . We use a high number to make
sure that the collision mask is moved to the botom.
5. As a final step, add the set <ghost> effect to () block with value 100 to make the
mask invisible.
 
Search WWH ::




Custom Search