Update features not appearing in embedded games

I saw that the new typing feature for when you ask for a string or variable does not appear in the embeded version of my project. Is this a bug?

1 Like

Seems to work for me.

<div style="position:relative;height:0;padding-bottom:117.6%;overflow:hidden;">
<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;" 
     src="https://arcade.makecode.com/---run?id=_9opMAUP9A8rJ" 
     allowfullscreen="allowfullscreen"
     sandbox="allow-popups allow-forms allow-scripts allow-same-origin" 
     frameborder="0">
</iframe>
</div>

I wonder if that will post properly here in the forum… Let’s try!

Well … it kinda renders correctly! :laughing: But it does work just fine for me.

1 Like

If you’re talking about a project that you’ve already published (as in, you published it prior to v.2 releasing), then you’ll need to republish your game. When you publish a project, it ties it to the version of MakeCode that was available at the time.

1 Like

That’s actually so cool!!! Like instead of sending the game and having people click the link you could just imbed the game! I wonder if there’s a way to get it to display correctly, like not just as the top half (I’m viewing on iPhone). I wonder if the mods would let us do that, considering I haven’t seen anyone do it before.

1 Like

I played an old version of my Teeny Tiny Cat game by just clicking the link I sent on the forum, without updating it or even opening the old project, and it had the updated menu, so idk if that’s true, but maybe you have to do it for imbedded projects?

It’s so nice when you post while someone is on approval duty, because then they get approved right away (thanks @AlexK!)

I wish post edit-able time was longer lol

1 Like

Right; the skin updates, but the engine running the project should be “pinned” to a specific version. Unless I’m misremembering … which is entirely possible!

I’d advise against embedding a game here in the forum. It’s not a great experience and it really impacts the performance of rendering the forum pages on your device.

1 Like

I found out what happened.
Ive been adding the following code to the end of the src url to remove everything but the screen:

&hideSimButtons=1&fullscreen=1&autofocus=1&nofooter=1

MakeCode just doesnt like this update

@RobbyZero Try including all but the hideSimButtons flag and see if that works. I suspect the sim buttons need to be there with the browser-events extension. Just a theory right now.

Edit: In my testing, I’ve found that the other flags work fine, but you cannot include the hideSimButtons flag. The simulator buttons need to be included in order for the browser-events extension to work. If your project does not use that extension, then you can hide the simulator buttons as you have in the past.

2 Likes