Hello, I am a new person to “makecode arcade” and need some assistance with a query. you see im making a game and a enemy I am making is making the game glitch. you see I want the enemy to move side to side, but I can not make it do that when it does not exist in some levels, causing the game to glitch as I am telling it to do a ation with something that is yet to be manufactured. I usually do not have a account but desperate times call for more direct measure’s. can anyone help me with this?
Could you show us your project?
Hi! This is a pretty common problem. The best way prevent this is to add a check like “For (sprite) of kind (enemy)” around your back-and-forth code. This makes it so that if there aren’t any sprites of that type, the code inside doesn’t run, and if there are, the code runs for all of them! One downside is that if there are multiple types of enemies and you only want the code to run on one type, you have to check for that type specifically by checking some other way, or you have to make the enemies different types, which would require you to copy any player-enemy collision code for the every type of enemy.
thank you woof woof for helping, I am thankful for you help. sadly, due to moderators being a little slow, I already just worked around this and made it so the game does not need enemies, although I will use this later. thank you.
hello again. so I’ve gotten to a point where I wish to make moving platforms. I’ve seen it been done in another project someone made but I can’t make out whatsoever how to do what they did. could someone help? my game mentioned is listed below.
the moving platform is in the moving platform function if you can’t find it.
I love the game so far! The puzzle and movement is super fun!
thanks. I’m also thinking of adding a story, but note not much else will come out until the sequel, mostly because I need to add enemies and moving platforms to every level to not have the game break. thanks for the support!
finished the first game! anything new will be part of the sequel!
hey, to anyone who’s finds this post, the game kind of broke down due to glitches and me working with the wrong links and deleting the original ones. Long story short,dont try to find this game. Sorry folks.
I’m so sorry! It was a lovely game when I did play it; Maybe you can try a new game?
maybe, but I am also taking a creative break from Makecode before I start working on projects again, so I’m not doing anything big. although, I will see what I can do, sense honestly a bunch of the stuff in this game was very simple, and we still have some of the assets.
okay, so I wanted to test what I could add, and although I had to delete the new unpublished version, I seem to be able to make a lot in a singular day. therefore, I will be making a remastered and finished version and attempting to post it. I will keep you informed when a new version is out. although note, it will still not be easy to make the new version, and I still may run into roadblocks and or have a bad schedule, plus other work. overall, please expect a wait like many of other projects have, although it may not be at. Big as other projects waits.
just finished a WIP version of the new game. added a few new things and may add some old/new levels. hope you guys enjoy.