Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
Wow - finally. The candle item works and is finished.
Thanks minmay!
Thanks minmay!
Re: Ask a simple question, get a simple answer
I have a few new questions: what does the reflection tile drawing mode do? And also what is the point of an occluder and what is it used for?
Grey Island mod(WIP): http://www.grimrock.net/forum/viewtopic ... 99#p123699
- Zo Kath Ra
- Posts: 937
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Ask a simple question, get a simple answer
> what does the reflection tile drawing mode do?
Skuggasveinn has explained it in LoG2 editor tutorial - part 4 - Creating water inside your dungeon @ 4:25
If you haven't already done so, I suggest downloading all of his LoG2 tutorials with https://youtube-dl.org/
Re: Ask a simple question, get a simple answer
Add a wall to your level (like a ruins wall, preferably outdoors with lots of stuff around) and disable the model to see for yourself what it does
Re: Ask a simple question, get a simple answer
It occludes.
Re: Ask a simple question, get a simple answer
So what is the point of it? is it for performance so it doesn't load the models the player usually wouldn't see or something?
Grey Island mod(WIP): http://www.grimrock.net/forum/viewtopic ... 99#p123699
Re: Ask a simple question, get a simple answer
Exactly, every game does it
- Skuggasveinn
- Posts: 562
- Joined: Wed Sep 26, 2012 5:28 pm
Re: Ask a simple question, get a simple answer
They are super important, some engine create their own mesh from models to use for vision culling, the Grimrock 2 engine uses models that you have to define as an Occluder model for that specific task.
Perhaps long overdue but I decided to record a short video about occluders and there function and how you can see what they are about. Hope it helps.
https://youtu.be/xAj65MM2lww
Skuggasveinn.
Re: Ask a simple question, get a simple answer
Two more questions: first, if the player creates a party, changes the position of champion 1 and champion 2, then imports that party
into a different mod, would the game remember the original Ordinal or make a new one based on the party's formation when it was imported? Second, is there some sort of offset function that can be used repeatedly on the same object? Such as using something like setSubtileOffset but if you call it twice on the same object it would move it twice? Something like this? but if I call it again, it would move it again? (or alternatively, could I do something like
into a different mod, would the game remember the original Ordinal or make a new one based on the party's formation when it was imported? Second, is there some sort of offset function that can be used repeatedly on the same object? Such as using something like setSubtileOffset but if you call it twice on the same object it would move it twice? Something like this?
Code: Select all
teleporter_1:setSubtileOffset(2, 2)
Code: Select all
local offset = teleporter_1:getSubtileOffset()
teleporter_1:setSubtileOffset(offset + 1)
Grey Island mod(WIP): http://www.grimrock.net/forum/viewtopic ... 99#p123699
- Zo Kath Ra
- Posts: 937
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Ask a simple question, get a simple answer
GameObject:getSubtileOffset() returns two values:ratman wrote: ↑Thu Dec 24, 2020 1:01 am Second, is there some sort of offset function that can be used repeatedly on the same object? Such as using something like setSubtileOffset but if you call it twice on the same object it would move it twice? Something like this?but if I call it again, it would move it again? (or alternatively, could I do something likeCode: Select all
teleporter_1:setSubtileOffset(2, 2)
Code: Select all
local offset = teleporter_1:getSubtileOffset() teleporter_1:setSubtileOffset(offset + 1)
- x subtile offset
- y subtile offset
( see https://www.lua.org/pil/5.1.html )
If you want to change the subtile offset by some amount, you could do it like this:
Code: Select all
local x, y = teleporter_1:getSubtileOffset()
teleporter_1:setSubtileOffset(x + 0.1, y + 0.1)