A Third Curious Question About Collision #9
-
[NEVERMIND! You can honestly go ahead and delete this whole post! I made this whole essay-length post about a mistake I made!] Yo, not gonna lie, I'm probably gonna continuously ask things here for a while every now and then. I hope that's not super annoying for you. I was using the instance_create_depth command in the player_is_standing function, and when that happens, an object spawns that doesn't draw the sprite of my object nor seems to follow any of the commands of the object itself, its just a block that floats there. It does have collision and does spawn where its specified but it doesnt do anything else. It has some unusual behaviors when interacting Also, the player moving when the object gets spawned is normal, he's supposed to do that. 2024-12-08.23-46-39.mp4(In case you didn't notice, look at the wall on the left. It moves when the object gets spawned.) https://github.com/user-attachments/assets/3304259d-3108-4194-8c0d-69947431c666 And the player freaking out when trying to stand on certain angles of a slope, I'm also pretty sure that's because I put it below the checks in the player_is_standing instead of above. Still, I do NOT know where to begin trying to understand what is going on here. (i'm giving the player a sword) This would really kill two birds with one stone because I want to have the player and other enemy instances create other similar objects as well Also, while I'm at it, I know there's a lot of ways to make an instance follow another, but you know your engine best, do you have any special tips for doing that with the player? I don't know why it doesn't update every frame on the step event to follow the creator of the object. I'm assuming because the engine that all this is happening... it's not gonna be like that forever, i just code in the ways i know how but i plan to come back to it later when i have to. Holy crap. I actually managed to accidentally have the object and sprites both deleted on complete accident and the game still ran. So it's not even loading my objects...?? Thanks for making this engine by the way and answering to all my stuff, I know these questions MAY seem a little bit extremely stupid, your engine takes care of like, I say, 80% of the stuff, and the other stuff I plan to add, I feel like it isn't too hard. homing attacks sounds really easy and doesn't mess with existing stuff, you already added flying to super sonic, i'd just rewrite the player_is_flying function.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay. WHAT THE HELL. It fixed on its own. I think I accidentally had the same name for the object as a variable originally, and things just got weirder then on. It works now, the thing follows the player and everything. It brings a tear to my eyes. I'll make it change with the ground_direction and everything, it'll be beautiful. I think I might cry. |
Beta Was this translation helpful? Give feedback.
Okay. WHAT THE HELL. It fixed on its own. I think I accidentally had the same name for the object as a variable originally, and things just got weirder then on. It works now, the thing follows the player and everything. It brings a tear to my eyes. I'll make it change with the ground_direction and everything, it'll be beautiful. I think I might cry.