silverua / slay-the-spire-map-in-unity

Implementation of the Slay the Spire Map in Unity3d
MIT License
273 stars 65 forks source link

Locking down the position of the map's parent? #30

Open jmeyer1980 opened 4 months ago

jmeyer1980 commented 4 months ago

Hey, me again. =)

How can I lock down the positioning of the parent window of the map? Ot keeps shifting all over and that is making it difficult to build the UI around it. It's probably something simple that I am not thinking of.

jmeyer1980 commented 4 months ago

I think I either figured it out or figured out a work-around. I think you intended the randomize position of the boss node as the thing to center the viewport on (but that doesn't center the view on the screen horizontally. This could be resolved by allowing the player to scroll on both axis, but I really want to freeze it on the X. I set the random position of the boss and the nodes before it to zero and I think that has resolved my problem.

silverua commented 4 months ago

Glad that it's resolved. I have to admit that I still do not fully understand the question. Maybe you could share a screenshot? Also - which one of the 2 scenes have you tried - SampleScene or SampleSceneUI? If you're using one of them, maybe using another one would provide desired stability and ability to build UI around it?

jmeyer1980 commented 4 months ago

I apologize. This was a question in regards to Gamevanilla's map generator for the Single Player CCG kit that I also have, but because they don't let you generate the map out of runtime, I decided to use this one. Now I am having trouble understanding how to trigger the load scene for a particular node?

jmeyer1980 commented 4 months ago

I am using the UI version of the map.

Ah... just reached that part of the longer tutorial... hopefully, I learn something. lol. It tends to take a while for stuff to sink in.