C
Chatterb0x
Guest
There are, essentially, 2 objects.
An obj_blood instance is created when enemies are killed. In a collision event between obj_blood & obj_blossoms, the former's sprite is drawn to the surface.
I've put this code inside the obj_blood step event.
And yet blood instances are still being drawn along outskirts of the blossom object. Please view this gif.
http://giphy.com/gifs/blind-samurai-3oriOb87y0cLqrRddu
You can see that the 'fringe' blood is not visible until I run a dissolve script. Now, some of that is because even if a single pixel touches the blossoms, its instance remains. But other instances appear no where close to the blossoms!
That brings me to 2 questions:
- obj_blood
- obj_blossoms
An obj_blood instance is created when enemies are killed. In a collision event between obj_blood & obj_blossoms, the former's sprite is drawn to the surface.
I've put this code inside the obj_blood step event.
Code:
//If the blood instance is not colliding with the blossoms, destroy blood instance.
if!(place_meeting(x,y,obj_blossoms)){
instance_destroy();
}
http://giphy.com/gifs/blind-samurai-3oriOb87y0cLqrRddu
You can see that the 'fringe' blood is not visible until I run a dissolve script. Now, some of that is because even if a single pixel touches the blossoms, its instance remains. But other instances appear no where close to the blossoms!
That brings me to 2 questions:
- How can I make it so the blood instance must be on the blossom instance entirely, else it's destroyed?
- Why do blood instances appear outside the blossom and how can I correct this?