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:
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
Hi guys I’m back here again
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!
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
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.
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.
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!
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.