Grab stuff like Mario grab turtle’s shell

abenjack

New member
Hi guys, I need a solution to give my player the ability to grab objects like super mario with turtle’s shell and goes around the level with the object in his hands.

Can you give me some hint or let me know if there’s a tutorial about this topic?
Thanks in advance!
 
I'm not advanced enough to tell you how to do this, but to simulate a koopa shell, you'd need an enemy that leaves behind a powerup, then that power up gives your player a projectile with one ammo, which shows the projectile as a projectile source when the shoot button is held, but doesn't create the actual projectile until the button is released.

Possible relevant scripts:
Monster drops: https://www.nesmakers.com/index.php...r-drops-are-health-when-you-have-1-left.6197/
Change character appearance: https://www.nesmakers.com/index.php...s-appearance-weapons-4-5-6-intermediate.7157/
Projectile shooting can be modified from the default input scripts.

Hopefully that gives you some ideas.
 

abenjack

New member
I'm not advanced enough to tell you how to do this, but to simulate a koopa shell, you'd need an enemy that leaves behind a powerup, then that power up gives your player a projectile with one ammo, which shows the projectile as a projectile source when the shoot button is held, but doesn't create the actual projectile until the button is released.

Possible relevant scripts:
Monster drops: https://www.nesmakers.com/index.php...r-drops-are-health-when-you-have-1-left.6197/
Change character appearance: https://www.nesmakers.com/index.php...s-appearance-weapons-4-5-6-intermediate.7157/
Projectile shooting can be modified from the default input scripts.

Hopefully that gives you some ideas.

Hi saturdayxiii, thanks for your reply!
My idea was a bit different. I would like to grab object going around with them (like in scrolling beat'm up, when you got a knife for example, and go around with it in your hands). I followd all the official tutorials but didn't find anything about that.

Anyway, thanks again for your feedback. Any other hints will be appreciated.
A.
 

Jonny

Well-known member
Do you need to keep the knife (for example) as a seperate object to the player while they're holding it? If not, you could have the knife as a pick up object, destory the object as it's picked up and change the players graphics at the same time to show the knife (or overlay sprites), then re-instate the knife if its thrown down.
 
Top Bottom