Language…
7 users online: ezdeez85, GRIMMKIN,  Nanako,  Ringo,  Segment1Zone2,  Telinc1, toady - Guests: 244 - Bots: 287
Users: 64,795 (2,375 active)
Latest user: mathew

help blck spaw sprite

https://pastebin.com/dnh1wpKs

Hello, I have a small problem and it is because the fungus does not appear or sometimes it happens to me, that it reappears in another place



I was trying to insert this block created with the tool, blockreator.

here I leave the asm code of the block.

https://pastebin.com/dnh1wpKs

every time I shoot the block with the fireballs a sprite appears.



but the sprite does not appear or appears elsewhere.

Firstly you do not need to post the exact same images again if nothing changed between the two posts. Secondly it's not actually clear what the desired effect you are going for is.

Looking at the code you have made it such that when a fireball hits the block it spawns a sprite, but the sprite is null so it is not going to work correctly. Additionally you have the block set to change a sprite's X position when it is touching it, so it would be moved elsewhere when it is spawned. What do you actually want to happen?

Originally posted by NopeContest
Firstly you do not need to post the exact same images again if nothing changed between the two posts. Secondly it's not actually clear what the desired effect you are going for is.

Looking at the code you have made it such that when a fireball hits the block it spawns a sprite, but the sprite is null so it is not going to work correctly. Additionally you have the block set to change a sprite's X position when it is touching it, so it would be moved elsewhere when it is spawned. What do you actually want to happen?


I want the sprite to appear in the same place where the block is, and if I change the x position right now.

The sprite is a poisonous mushroom that I inserted with a patch but apparently it does not appear in the same place where the block is, so what should I do or modify?
Add a %move_spawn_into_block() after %spawn_sprite(). For some reason, Blockreator doesn't set the new sprite's position after spawning a sprite nor allows you from doing so in the tool.