I REALY need help

i’m tying to do procedural art but it glitches every time

5 Likes

if you mean like good looking art made like by a computer than I can try to help

3 Likes

Could you send over the link to the code?
And what you mean by procedural– I’m guessing you’re combining images that are pieces of an artwork into a whole?

3 Likes

for context I was doing this to simulate mutations in genetics for a bigger game im doing :smiley:

3 Likes

yes

3 Likes

also you’re meant to press A

3 Likes

after some testing by removing the entire 25% chance if statement i can narrow down the issue but something that helps a lot is using debug mode where i can clearly see the issue.

oh and the issue seems to be when making the second sprite the sprite data needs to be added again so that it can be referenced which is why it was throwing undefined

Additionally, when you pick an item from the array thats 0, or max but then move to -1 or +1 the game cant return an item thats outside the array. Like trying to read the 5th word in a sentence with only 4 words. (or the -1th word).

i fixed this by making a custom random function that will tick over if the value is too high or too low

im not entirely sure what you were trying to do but i hope this was helpful! i really like this little demo and i cant wait to see how its implemented

9 Likes

thanks a lot! I had this issue a long time :sweat_smile: next time i do something similar i’ll take notes!

3 Likes

also another problem: sometimes this game doesn’t start :frowning:
here it is

2 Likes

(also thanks to @BLADEr for the extention and fixing some problems :3)

2 Likes

That procedural art looks a lot like the Bibites on that one Evolution simulator game!

3 Likes

You’re welcome, @miguelsanto17598-gli! I’m so glad to have helped!

THIS GAME IS SO BEUTIFUL! Great job at creating all the creatures!

OK. I was looking at the code and I can see some things that might trip it up. For some reason all the errors I was finding were in some kind of update loop. I have no idea what to do about that because I was looking at your code and nothing seems incorrect. Maybe it’s a bug that has to do with Makecode Arcade?

The forever block with the “render all soft bodies”, you have to use an “on game update” block. Change it to this:

The game works fine when I removed the function “createskydweller”. I was looking in the function for that creature, but I don’t see anything that’s wrong. I’m not entirely sure why. The debugger says that there’s something wrong with the "mySprite2"s image.

Also, I would love it if you could add me to the credits of this amazing game!

2 Likes

thanks, and don’t worry, I will add credits in the next update!

2 Likes

(it’s sometimes annoying when I have to refresh the game so many times only for it to work…) I’ll find a way to stop that!

2 Likes

YESSSSSSSSS I DID IT (and there is credits now :3)

5 Likes

also you can give any ideas for the next creatures (there are spoiler names ahead)

the wanderer

skywhale

landdwellers

any ways, I am going to do a diferent draft for that topic so… see you there!

3 Likes

this is beautiful and the scene is kinda calming

2 Likes

I’m glad you could fix it! This is Awesome. Great job.

2 Likes

this is an amazing game great job.

Also I have a name idea:

“Treestalker”

It could be something that hides in trees and just watches you until it does something

3 Likes

Good idea! I’ll do concept art before adding your creature :+1:

1 Like