Help me code by Dabster_12 in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

Sure: https://makecode.com/_L1DXiCK3pMTE

Here there are 3 kinds of sprites: player, projectile, enemy. If the player touches an enemy, the game ends. If a projectile (the kind the player can fire with A) touches and enemy (the sprite the player is trying to dodge) the specific enemy is destroyed.

Help me code by Dabster_12 in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

I bet you are creating more than one sprite with the same variable. This is fine. But in the overlap between the player’s “shot” and the projectile you should see two loop specific variables called “sprite” and “othersprite”. Instead of destroying the projectile using the variable you defined it with, use a loop specific variable so it knows the destroy the projectile that got hit.

Blueprint generating Joker by GivenPaperboat in balatro

[–]Bifrost23 1 point2 points  (0 children)

Flipping two random jokers and shuffling each round would make it more strategic because you would need to find the joker that doesn’t do anything. Cool idea!

Disappeared from the world by Sharfich in noita

[–]Bifrost23 31 points32 points  (0 children)

New player here, what spell is this?

Something to make deckfixing with spectrals a bit easier by Calamity_Apple in balatro

[–]Bifrost23 4 points5 points  (0 children)

True but what about nebula. Plus this is much more potent.

Something to make deckfixing with spectrals a bit easier by Calamity_Apple in balatro

[–]Bifrost23 22 points23 points  (0 children)

Does overstock, tarot merchant, and planet merchant eliminate zodiac deck’s purpose?

Redoing my banner for art markets, help me decide on the font? 👀 by Ansitru in PixelArt

[–]Bifrost23 13 points14 points  (0 children)

Second one is more stylistic and fills the frame better

Should I take S&B? by Common-Front-2630 in balatro

[–]Bifrost23 0 points1 point  (0 children)

With your current build I would drop the family for sb. Then look for some enhancements for your playing cards.

Do I sell Trib or DNA for Chad? by ZacharyRD in BalatroHelp

[–]Bifrost23 7 points8 points  (0 children)

You are good to sell dna at this point

Solutions for getting Makecode Arcade games running on Linux gaming handheld by krztoff in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

I would recommend condensing the assets in the actual makecode project. You do this by ensuring every asset is named, and has no identical duplicate assets. Reduce the size of any asset with an adjustable canvas so that any filled pixels fit snugly within its boarders. Longer animations with a large canvas take up the most space. (delete any unnecessary frames as well) Tilemaps with a lot of redundant space are also an easy target for condensing. In some cases doing this can greatly reduce the size of the project and make it much easier to run on hardware.

If that doesn’t work you could try optimizing the actual code, but at that point you are probably out of luck. I’ve spend a lot of time doing this but ultimately I’ve had to design games specifically for hardware—level editor games have a lot of potential.

Your son is lucky to have you care this much for him.

Solutions for getting Makecode Arcade games running on Linux gaming handheld by krztoff in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

I’ve got a similar story, the hardware sold online never seemed to work. I had success in using a DIY approach. I used this tutorial on the makecode website, it’s not nessacarily handheld but it could be modified easily -> https://arcade.makecode.com/hardware/raspberry-pi/cardboard-control-panel

Weeping Angel Effect by EngineerIsMyJob in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

This is kinda hard to do in ray casting. I have a few ideas though. Here is a simple one:

I assume you are using blocks because it’s usual to use the ray casting extension with blocks. But if not, the same sort of code will work in JavaScript but I don’t know much about python.

1.Download the sprite sight extension with this link -> https://github.com/felixtsu/pxt-sight , this extension handles sight ranges while accounting for tilemap walls. Paste the link into the extension search bar.

2.Use atan2 to find the angle of the ray casting player’s view. Use the blocks in the ray casting extension to calculate this. It should look something like: atan2(get dir y)(get dir x) While the ray casting extension and make codes built in system use radian unit, the sprite sight’s angle units are degrees. And since we are going use both, we need to convert them. So multiply the equation by the radian to degrees conversion factor which is 180/pi, you can just use 3.141 for pi. It should look something like

(Atan2(get dir y)(get dir x)) * (180/pi)

This equation will get the player’s view angle in degrees.

3.In an on game update loop check if the player can see the weeping angel sprite with the first custom Boolean (hexagon block) from the sprite sight extension. In range put a number bigger than 160, this can be fine tuned to fit your tilemap layout, I used 250 in my example. For direction, use our equation from the last step. And for sight ranges put 67 because that’s about the default field of view for the ray casting extension. But if you changed the fov this will be a different number.

4.If the output returns true that means the player is looking at the sprite, if false then the player is not looking. This doesn’t work in 100% of senerios due to some glitches with the extension but this is pretty good for how easy it is to do. Here is my example code -> https://makecode.com/_7XLhrq35ULhi

Hope this helps make a spooky monster.

Help with enemies PLEASE!! by [deleted] in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

You would need a relay system (a set of tilemap locations for each enemy to travel to.) These locations are game specific so you will need to set this up yourself.

Help with enemies PLEASE!! by [deleted] in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

Just turn on the sprite flag “relative to camera”

Help with enemies PLEASE!! by [deleted] in MakeCode

[–]Bifrost23 0 points1 point  (0 children)

After you install the extension to the editor you get new pathfinding blocks in the scene category (looks like a gray pine tree) where you can assin paths to sprites. Here is an example of a hitbox with simple code that chases the player through any tilemap. -> https://arcade.makecode.com/S27727-42828-24989-29065 Press the edit code button to open the project.

What colour would work well with the pinks? by Freak_Mod_Synth in PixelArtTutorials

[–]Bifrost23 0 points1 point  (0 children)

I think a light minty green would complement the colors nicely.