A Rotated Tiles Proof of Concept #41
Pinned
ProjectMobius13
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Oh wow, good stuff! Really clever usage of a bitmask |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A proof of concept showing collision tiles rotated in the room editor working after a little tweaking. Full disclosure: there may be some edge cases I haven't found that result in some wonky behavior. It's also not the cleanest code, and there is likely a more elegant solution. But it works!
![OrbinautFramework2-GameMaker-Editor](https://private-user-images.githubusercontent.com/48114303/370511121-91a33ca2-d25a-4e7b-b14d-5f909e3f2bd8.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzU3OTg4OTMsIm5iZiI6MTczNTc5ODU5MywicGF0aCI6Ii80ODExNDMwMy8zNzA1MTExMjEtOTFhMzNjYTItZDI1YS00ZTdiLWIxNGQtNWY5MDllM2YyYmQ4LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTAyVDA2MTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcyMzU4ZmU5NGFkY2U3NDE5MGU5MTIzNGJmOGY2MjAyZGI5ZGMyMTdhN2VjNzEzMDUzNjkwYTQzNDgxMGU3MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iujiEFe0NzXnuLVYzIy2WOOFHIppFntyPM9AfZ91NpY)
![OrbinautFramework2-Gameplay](https://private-user-images.githubusercontent.com/48114303/370513262-edcb6a8f-bba5-48cd-8873-e2d2350b7a4b.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzU3OTg4OTMsIm5iZiI6MTczNTc5ODU5MywicGF0aCI6Ii80ODExNDMwMy8zNzA1MTMyNjItZWRjYjZhOGYtYmJhNS00OGNkLTg4NzMtZTJkMjM1MGI3YTRiLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTAyVDA2MTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU0OWI2N2NmMjY1MjdiMmFiNTg0YzRlZjM4NDNjYTU1NDZkYjJiOGNkY2NhN2RjZmZiNDMzNmE5ODhjYTQ2YmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nP8egDiUHt2YPztfADzPkBSCVMOXIuKi3alzvs_3tp4)
Here are the changes to the scripts needed to make this work:
In both tile_find_h and tile_find_v, you will find this block of code:
Replace it with:
And voilà! No more breaking when tiles are rotated in the room editor.
Beta Was this translation helpful? Give feedback.
All reactions