Hello, all!
While working on my Dizzy game, procrastinating terribly as always, I was once again reminded of the impossibility of moving static brushes between rooms in Dizzyage. {dizzy}:mad:
This subject was discussed here - https://yolkfolk.com/communityforum/postid/54606/
There Delta mentioned enabling dynamic objects to act as block brushes.
[quote data-userid="23" data-postid="67749"]
personally, if i were doing it, I'd use the code I've wrote especially for CoTM to enable dynamic objects to act as 'block' brushes, but that is rather complex coding, and involves quite a few modifications to the original code. Plus it's highly specialised for CoTM, and may not necessarily work as expected in a classic dizzy game.
[/quote]
I managed to adapt his code to suit usual player movement on a horizontal plane - this worked splendidly. Thank you, Delta! {yolkfolk}:clap:
However, I cannot devise a way to achieve the same effect blocking player movement on the vertical plane i.e. make Dizzy hit his head against an object when jumping. This is due to my lack of understanding of the "MaterialGetFreeDist(x1,y1-step,x2,y1,1,1);" function. My interest, if it is not already clear, is in creating moving blocks.
One downside of using dynamic objects is that they will always have a rectangular hit box, so to fine-tune Dizzy's interaction with a non-rectangular object would require multiple smaller rectangular objects to be placed along its border, all of which would require separate ids in order to be moved. All in all a lot of hassle, that makes one question doing this in the first place!
I am just experimenting here and am certainly not asking anyone to go out of their way to write new code for me. However, if anybody has some relevant information or suggestions I would love to hear them. I am of course aware of the work-around of using a brush in each relevant room which would be sufficient in many situations; however, it would be interesting know if anyone else conducted similar experiments and with what results? {yolkfolk}:puzzled:
Thanks in advance! :tup: