This system adds a camera shake effect to the game, fully controllable directly from Python.
It can be used for:
- earthquakes
- special skills
- boss effects
- dungeon events
- heavy impacts
- any moment where you want to simulate aggressive camera movement
The system works using two values:
- Duration of the effect (in seconds)
- Intensity level
import app
app.SetShakeCamera(2.5, 4)import app
app.SetShakeCamera(5.0, 10)import app
app.SetShakeCamera(0.0, 0)import app
app.SetShakeCamera(3.0, 5)This call starts a camera shake effect for 3 seconds with intensity level 5.
| Intensity | Description |
|---|---|
| 1 - 2 | Very light, suitable for small impacts |
| 3 - 5 | Medium, good for skills or normal effects |
| 6 - 8 | Strong, ideal for boss attacks or short earthquakes |
| 9 - 10 | Extremely aggressive, recommended only for short durations |
The intensity level is internally limited between 1 and 10.
- The shake effect is applied directly to the game camera.
- The system can be called from any Python script.
- If the duration is set to
0.0, the effect stops instantly. - High intensity values may produce aggressive visual effects and should be used carefully.
Make sure the define is enabled:
#define ENABLE_SHAKE_CAMERAapp.SetShakeCamera(duration, intensity)| Parameter | Type | Description |
|---|---|---|
| duration | float | Effect duration in seconds |
| intensity | int | Effect strength (1-10) |
app.SetShakeCamera(4.0, 7)app.SetShakeCamera(2.0, 5)app.SetShakeCamera(8.0, 6)app.SetShakeCamera(1.5, 9)