Game Development Reference
In-Depth Information
4. The following blocks remain the same unil the instrucions reach the wait 0.2 secs
block. We don't need that, so we remove it from the script.
5. We replace it with a repeat unil () loop to check for collisions.
6. We will check whether the arrow hits many different things, that is, if it is using the
if touching <edge> or touching color <black>? or touching <Knight> or touching
<Ghost2>? block.
7. While the arrow hasn't touched any of the previously menioned objects, it will
repeatedly use the move 5 steps block. This will make it fly forward.
8.
Once it has touched an obstacle, we will use the hide block to hide the arrow. This
block is already there.
That completes our arrow funcionality.
Objective complete - mini debriefing
The player now has two weapons to look for. Once either one of them is picked up and
moved to the item list, it can be used by pressing the corresponding key.
When tesing the game, we sill noice a problem. The enemies won't actually be removed
when hit by either of the new weapons. Only the bomb works completely as intended.
We will fix these final issues in the following step.
 
Search WWH ::




Custom Search