Skip to content

Make the FNAF creatures face the office when themed - #1147

Merged
4ian merged 1 commit into
mainfrom
claude/fnaf-creatures-facing
Dec 1, 2026
Merged

4ian merged 1 commit into
mainfrom
claude/fnaf-creatures-facing

Conversation

@4ian

@4ian 4ian commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

The two creatures of the FNAF starter were turned by the Z rotation of their object (rotationZ: -90). A theme model replaces the object's rotation with its own, so in every theme the creatures faced sideways or away from the office.

Each instance now carries the whole rotation instead, and the object's rotationZ is 0:

  • an instance with only an angle gets its angle + 90;
  • the two tilted instances get their rotation recomputed (the instance rotation Rz(angle)·Ry·Rx composed with the object's former Z rotation, then decomposed again).

The placeholders are drawn exactly as before, and theme models now face the office. Nothing in the events turns the creatures: they are shown and hidden at their placed positions, so the instances are the whole fix.

This is the same mistake fixed for the haunted house monsters in #1146, whose README change adds the rule (turn a mapped model with the angle of its instances, never with the rotation of its object).

Testing

  • Every creature instance was screenshotted, along with the game's own camera feed, with GDevelop 5.6.288, without theme and with the castle and toys themes, before and after the change. The placeholders look the same; the theme creatures now face the office instead of standing sideways. The cyberpunk and haunted-house themes were also run after the change.
  • The gameplay tests of the starter pass with every one of these copies (24 tests).
  • jest scripts/ passes.

Generated by Claude Code

The creatures were turned by the Z rotation of their object (-90). A theme
model replaces that rotation with its own, so every theme drew them facing
sideways or away. Each instance now carries the whole rotation instead (its
angle, and its tilt recomputed for the new angle): the placeholders look the
same, and theme models face the office like them.
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@4ian
4ian merged commit 6f13cdd into main Dec 1, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants