What I want:
-I made a character that has a vacuum. When I press the “Ralt” key I would like my “SuctionDust” Animation to spawn, then de spawn when “Ralt” key is released. I would also like the “SuctionDust” directly in front of the character. (The Character is 16x16 Pixels and the “SuctionDust” is also 16x16. So i would like the Dust to be directly adjacent to him. Furthermore, when the character turns around facing left, I want the “SuctionDust” animation to follow the direction he is facing. (Note: This is a Platformer game, so the character only go’s left and right).
-The enemies are wasps. I would like the wasps to be deleted from scene when they collide with “SuctionDust” (But only while the animation is playing.) Otherwise, the wasp will sting him and get hurt.
What I have Tired:
I am new to this program and searched the internet to help me discover the secret. I’ve tried many different behavior and action strategies. Alas, to no avail.
Screen Shots to help you understand
Please let me know what you come up with.
Kind Regards!
Alex. W
All I did was place the SuctionDust animation next to my Character in scene to help you understand the idea of what I want. It wasn’t actually spawned by an action key.
When I press a “Key” I would like the animation to spawn adjacent to him in the direction he is facing or traveling. That is where i struggle.
I can probably figure out the enemy thing, i just added that in my question so you can understand the full actions the SuctionDust must preform.
Ok got it, so basically it’s just placing a point on your character (say the tip of the gun) and placing another point on your suction dust (say near the first particle of dust) and then creating an action to spawn them on those points.
Go to the sprites and click “Edit Points”. Then create the points you need.
Hello Alex. I wanna help you about the particles and objects getting closer to the vacuum. First you want to make suction animation. I made something like this just before hours (coincidence) and want to share my knowledge You can do it like this if you don’t want to use animation for dust.
1-Add extension “homing projectile”
2-Create 4x4 dust object (square maybe) (maybe even smaller)
Hello again @kingwulfgar. I would love it if you could send me that game example. I’ve been using bits an pieces from both of you, however I cannot seem to link my dust to my character. I’ve decided I’m gonna use you code completely. Thanks again! - Whimwham
Sorry for the very late reply. Hope you achieved what you wanted in the meanwhile. I always encourage everyone to learn other’s code but write their own nevertheless I will send you an example to make it sure you do it too Took me like an hour or so to make this, hope this helps