YamJam's help station

This is too advanced for me :sob:

Anyways, I decided to scale the size of the map to give it more of a “3D” feel, but now the adjusting is off… I don’t want to make you fix more things for me, but how would I change the code so that it can adjust the characters position perfectly no matter what shape the map is? (If that is possible which doesn’t seem so likely…) Here’s the link:

1 Like

is that easier to understand?

1 Like

that actually helped because I was on mobile when I tried it and nothing seemed wrong…

yeah the hypotenuse

3 Likes

This is really nice. The isometric thing was something I’ve been thinking about, and how to get the sprite collision worked out. Now I need to dig into this

2 Likes

Hi guys I’m back here again :smiley:
This time I need to know how I can rotate the background, as I REALLY need it for a game I’m making for @rizeupdev’s code stars game jam (go check it out!). I know I can use a sprite, but I also need it to be able to scroll up and down. The only way I now to do the scrolling is to just change the y value, but it leaves black space. So if anybody knows how to rotate the background, or scroll a sprite image (without it just cutting off pixels like the image below), please tell me!

pinging

@richard @WoofWoof @VoxelMaster64 because you’re also smart
https://arcade.makecode.com/S77321-07496-54297-25725
link because I don’t know where else to put it

1 Like

have an idea but I’m not intirely sure, and it would take a while to do.

1 Like

Try to use the minus camer left and top

2 Likes

What???

1 Like

Helping others in the same competition I’m doing NEVER

What??? If you’re not going to say something useful then maybe don’t get my hopes up by replying on this comment.

2 Likes

Richard how do you make these I’m trying to use this as an alternate form of project saving

that’s not what this is for, i don’t want these links floating around. just save your projects the usual way.

3 Likes

Or I could use a ton of share links and use pub:

1 Like

Hello! I’m back with a new game, and a new bug. Right now I’m working on a pretty big project in my opinion and am working on a singleplayer gamemode for it. But the problem is that when you set your gun ID to 3 in the code (which it’s currently set to), you’ll see that shooting zombies does almost no damage. Please help!

Left + Right arrows to aim
A to shoot
WASD to move

P.S the same thing happens when you set the gun id to 2

2 Likes

Can anybody help me? Sorry if I sound impatient, (even though I kinda am a little bit on some things tbh) but I really hate when I have a stupid bug that ruins my game, and this game also connects to a larger project I have and I don’t want to have to give up on that.

1 Like

I dont know why its happening, but you could set all the damages to the same number and see if they do the same damage

1 Like

I have a theory that maybe it’s returning NaN (I used console log) because the other 2 guns shoot multiple bullets at a time. Maybe it registers multiple bullets hitting the enemy so it gets confused on how much damage to take so it returns NaN, although I don’t think it’s true.

1 Like

Back with the same game again! This time it’s with menu sprites.

For some reason, when you try to equip a weapon (press menu then click on “bag” with your mouse cursor), absolutely nothing happens. I can’t find any reason to why this is happening, even more strangely, this bug happened just suddenly one morning when I checked on my game. I really need this function to work, as the game will be very boring especially because you can’t equip weapons that you buy.

@woofwoof or @richard, you guys are like the smartest people on the forums that I know do a lot of helping fix bugs, so please help me if you can!

P.S, try buying a brown or gray chest!

2 Likes

This is happening because the cursor overlap is triggering multiple times, creating multiple menus and background sprites, and because the p1bag and background variables only hold the most recent sprites created, destroying them will only destroy the last sprites created. You can see this if you change them to be destroyed with an effect.

P.S. For me the program crashes when I click “bag” because the bag setting doesn’t exist yet, so I had to buy a weapon to fix this. Make sure you create the setting in the code that runs when it doesn’t exist.

3 Likes