-
Notifications
You must be signed in to change notification settings - Fork 2
Creating Obstacles
Obstacles are not just things that block the player or things that break; they are also used to create crystals and even for making moving, solid boxes. Smash Hit doesn't know how a pyramidal crystal is different from a glass bar, other than that one gives balls upon being broken.
You can add an obstacle by going to the 3D viewport's menu → Shatter → Create obstacle. You can also use the keyboard shortcut Shift + Alt + F.
![](https://private-user-images.githubusercontent.com/73200930/271867040-82c16305-9027-4107-8e77-5dafc7c5f9b9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNzMwNDAsIm5iZiI6MTcyMDA3Mjc0MCwicGF0aCI6Ii83MzIwMDkzMC8yNzE4NjcwNDAtODJjMTYzMDUtOTAyNy00MTA3LThlNzctNWRhZmM3YzVmOWI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDA1NTkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkMmJjYTdmM2NjYjkxOGUwMzk3MjU4MGE5YzMwMDliYzI0YThlNDAzOGFkZDVkNjVkZjM2YzgxZmY3Y2ZhZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Tl_833hT3FGFPPDffBEMsd7uQMZSh3tWfKRsi3dh_J4)
See also: Templates
Sets the template that the obstacle will use.
You have the option to use a dropdown to select which obstacle you want this to be or to continue typing the file name manually.
The name of the obstacle that should be loaded. Examples: scoretop
(crystal), bar
(glass bar), framedwindow
(glass in Granny Smith moregames) and beatmill
(mill that moves to a beat, unused normally).
Click Use obstacle chooser to replace the text box with a dropdown menu.
Now, click the drop down that says "Obstacle" (it should be "Crystal: Pyramidal" by default). Using this menu, you can change which obstacle that you want this to be.
- Modes: Allows choosing the game modes that this obstacle will appear in.
- Difficulty: Allow setting the difficulty range that this obstacle will appear under.
![](https://private-user-images.githubusercontent.com/73200930/271867146-6da6bdd3-587f-4515-b3e7-4cc117f7dc1f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNzMwNDAsIm5iZiI6MTcyMDA3Mjc0MCwicGF0aCI6Ii83MzIwMDkzMC8yNzE4NjcxNDYtNmRhNmJkZDMtNTg3Zi00NTE1LWIzZTctNGNjMTE3ZjdkYzFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA0VDA1NTkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg5ZDFjYTlhOGUyYzJhOTYyYzFkNmY3ODQzNjJiZjhlOGQ0ZWUzYjNiY2IwMGE2OWU1ZDg2MWVjOGFkNDg1NGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YatLLXAYuMSeZFp1YyAkSD9gYDm2BANHXI726B6QpnI)
The parameters control what options are passed to the obstacle. Parameters can be used to customise how the obstacle looks or function, such as controlling the speed of a glass fan or the number of rays in a laser. They take the form key=value
and there can be up to twelve.
It is usually best to start using the parameters after the second one since the zeroth and sometimes first are used to pass in template options and would be overridden.
Note
The first parameter (
param0
) will be disabled if a template is set.
Go to your Blender Tools folder (C:/Users/%USERNAME%/Shatter
on Windows or ~/Shatter
on Linux and macOS) and create a text file called obstacles.txt
.
Hint: On Windows, it's just
obstacles
if you don't have viewing file extensions enabled.
Now, edit the new file. To add an obstacle, create a line with obstacleFileName=Obstacle display name
where there are no spaces between the =
on either side. To add more obstacles, just create new lines in the same format.
For example, if I had box
, scorebig
and foxtoy
as obstacles, I might make the file:
box=Box
scorebig=Score Big
foxtoy=Fox toy
Invalid lines (those without an =
) and lines that start with #
will be treated as comments.
- When an obstacle has an obvious bottom, its location should be flush with the surface which it is sitting on.
Copyright © 2020 — 2023 Blender Tools Documentation Contributours, Copyright © 2023 Shatter Documentation Contributours. Licenced under the Creative Commons Zero licence.