Custom topdown camera
This example shows how to create a custom topdown camera.
(click the button on the right to copy the code, then paste it in the editor by using the upload button)
{"nodes":[{"id":"4b42457faa20121b","controls":[],"label":"Start","position":{"x":-525,"y":25}},{"id":"4b54419214967429","controls":[{"key":"value","id":"931a03a29c4789d5","options":{"initial":"","linkSocket":true},"type":"select","value":"$CAMERA"}],"label":"Object","position":{"x":-200,"y":75}},{"id":"e2194d39e7bad99a","controls":[{"key":"value","id":"36d41584d386905b","options":{"initial":"","linkSocket":true},"type":"select","value":"$PLAYER"}],"label":"Object","position":{"x":-150,"y":-275}},{"id":"544e3fb72125fdf8","controls":[{"key":"mode","id":"369a4752a374bc89","options":{"initial":"early"},"type":"Frame Mode","value":"late"}],"label":"On Frame","position":{"x":225,"y":225}},{"id":"572612ae634a504c","controls":[{"key":"mode","id":"b9c2e444937dcc73","options":{"initial":"world"},"type":"Object State Mode","value":"world"},{"key":"speed","id":"3be6a803ff89415f","options":{"label":"Speed","initial":500},"type":"number","value":0}],"label":"Set Object State","position":{"x":1650,"y":-125}},{"id":"8f234580d0f91f29","controls":[],"label":"Get Position","position":{"x":400,"y":-450}},{"id":"ea3d59c8f9efffca","controls":[{"key":"x","id":"101627a8727517a0","options":{"initial":"","linkSocket":true},"type":"number","value":2},{"key":"y","id":"b2d379aa23a15de7","options":{"initial":"","linkSocket":true},"type":"number","value":2},{"key":"z","id":"2d3f835b39af0514","options":{"initial":"","linkSocket":true},"type":"number","value":2}],"label":"Vector3","position":{"x":550,"y":-150}},{"id":"472ccb62edea4613","controls":[],"label":"Add Vectors","position":{"x":950,"y":-400}},{"id":"07538786c9b76d34","controls":[],"label":"Rotation Between Vectors","position":{"x":1375,"y":500}},{"id":"0e668acc22a169bc","controls":[],"label":"Add Vectors","position":{"x":800,"y":375}},{"id":"bd810e322e319156","controls":[{"key":"x","id":"93cb24c7b41a91d7","options":{"initial":"","linkSocket":true},"type":"number","value":2},{"key":"y","id":"f71eeb7f48181755","options":{"initial":"","linkSocket":true},"type":"number","value":1.5},{"key":"z","id":"f938f8dc594e6166","options":{"initial":"","linkSocket":true},"type":"number","value":2}],"label":"Vector3","position":{"x":525,"y":500}},{"id":"2aef10d744967275","controls":[],"label":"Update Object","position":{"x":2200,"y":50}}],"connections":[{"source":"4b42457faa20121b","sourceOutput":"exec","target":"4b54419214967429","targetInput":"exec"},{"source":"4b54419214967429","sourceOutput":"exec","target":"e2194d39e7bad99a","targetInput":"exec"},{"source":"e2194d39e7bad99a","sourceOutput":"exec","target":"544e3fb72125fdf8","targetInput":"exec"},{"source":"4b54419214967429","sourceOutput":"value","target":"572612ae634a504c","targetInput":"object"},{"source":"e2194d39e7bad99a","sourceOutput":"value","target":"8f234580d0f91f29","targetInput":"object"},{"source":"8f234580d0f91f29","sourceOutput":"value","target":"472ccb62edea4613","targetInput":"value"},{"source":"ea3d59c8f9efffca","sourceOutput":"value","target":"472ccb62edea4613","targetInput":"value2"},{"source":"472ccb62edea4613","sourceOutput":"value","target":"572612ae634a504c","targetInput":"position"},{"source":"07538786c9b76d34","sourceOutput":"value","target":"572612ae634a504c","targetInput":"rotation"},{"source":"544e3fb72125fdf8","sourceOutput":"exec","target":"572612ae634a504c","targetInput":"exec"},{"source":"8f234580d0f91f29","sourceOutput":"value","target":"0e668acc22a169bc","targetInput":"value"},{"source":"bd810e322e319156","sourceOutput":"value","target":"0e668acc22a169bc","targetInput":"value2"},{"source":"0e668acc22a169bc","sourceOutput":"value","target":"07538786c9b76d34","targetInput":"position"},{"source":"8f234580d0f91f29","sourceOutput":"value","target":"07538786c9b76d34","targetInput":"target"},{"source":"572612ae634a504c","sourceOutput":"exec","target":"2aef10d744967275","targetInput":"exec"},{"source":"4b54419214967429","sourceOutput":"value","target":"2aef10d744967275","targetInput":"object"}]}