Goblin Splat 3D
Walk a 3D castle, squirt goo at goblins, find the key and get out. It shows how to shoot in a 3D level, with a health bar and an ammo counter.
How to play
โ and โ walk. โ and โ turn. Space squirts a blob of goo and opens doors. The white cross in the middle shows where you aim.
The things in it
| Player | The Hero with First-person (3D levels) movement. |
|---|---|
| Goblin | Chases another object: Player. It has a splat animation for when goo hits it. |
| Goo Blob | The shot. Floats in the air is ticked, so it flies at eye height. Disappears when it hits a wall is ticked too. |
| Goo, Keys | Counters. Goo is how many shots you have left. |
| Health | A bar. Goblins take 20 each time they catch you. |
The rules that matter
In a 3D level a shot leaves from the middle of the player, a little in front, so it goes where the cross points.
Switch 1 means โalready splattedโ. The other rules check it, so a splatted goblin stops chasing and cannot hurt you.
This uses overlaps, not collides with. Collides happens once, when they first touch. Overlaps stays true for as long as the goblin is on you, so it keeps hurting, once a second.
More about this in Shooting in 3D.