Help and Questions

Thank you Alex, one more thing though. I also want it to switch which corner it is attached to so it’s always visible. I meant to add that in the original post but just forgot to.

I found one method that works, simply swapping the left, right, top, and bottom, however it sorta cause a strobe effect unless you leave the cursor still so I was wondering if there was another way or a fix to this.

Can you send your current code? I want to see what you have! Sounds like it could be used to make tooltips when you hover over an object which is cool.

2 Likes

Hi! This is happening because tilemap "location"s are objects holding the column and row information. You can unpack this data with the location column/row block:

3 Likes

Made a separate thing just showcasing the code.

It doesn’t work all the time and, like I said, constantly switches if you move while near a wall. If you can find a way to refine/fix it that would be coolio, especially cause it would be a sorta preset for anyone else who wants to make a tooltip thing

1 Like

Ok I have it set up so that it should only switch from right to left when the left side has enough space to display it fully and it’s touching the right side, so the code will work for smaller boxes/bigger screen resolutions.

This solution does ignore the width/height of the cursor sprite, so it does clip a bit into the side. I just couldn’t be bothered to fix that.

2 Likes

Okay, I made another that uses the cursor’s position instead.

It’s alright imo, you’d have to set the text to always stay on screen for it to not clip however if you come up with a better version woof^2 please share. I also don’t know how to make it dissappear when not Hovering over a menu item

1 Like

You can just check if the cursor is not right of the menu left, left of the menu right, lower than the menu top and higher than the menu bottom. This will include any title text but who cares.

2 Likes

DONE!

Basically mixed our two versions together and it works pretty good
Teamworks makes the… uh something something, I fogot

2 Likes

yo Richard can you export the “_sceneStack” variable in game.ts in the “Game” folder please :pleading_face:

1 Like

You can access non public variables by writing the code like object[“variableName”] instead of object.variableName
This is my ultimate secret JavaScript weapon, so use it wisely and, most importantly, use it to do the silliest and dumbest stuff you can think of!

1 Like

Hi, my MakeCode seems to be stuck loading? it isn’t even loading into the main project screen. I restarted my device, I cleared my cache, I waited like 4 hours, what do I do?

@VioletVixen3 can you follow the instructions in the post below to send me the console logs? i’ll see what i can do

1 Like

What this is actually op now I can use get to more easily switch scenes instead of deleting them and reading them over and over

1 Like

It seems to be working now, just takes a bit longer then it used to load. And I would have sent the logs if I could, but my DevTools are blocked (school laptop). But what was happening was the screen before the main menu happened, like the screenshot I sent was the thing right before this, if that helps: