Crushing the Player

Description: Archive discussion
============================
Original description:
Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #1by Sambo » 6 Dec 2015, 3:12

I'm making a Starman using the invincibility cheat code. It all works really well so far, but, as you know, the player cannot be crushed to death if he is invincible. With a Starman, the player is not supposed to be immune to crushing. However, I don't know how to recreate the crushing "algorithm."

Another thing: For a flying npc, such as a para-goomba (the one with a changeable AI), how do you chage the AI setting. I looked it up, but the NPC AI page wasn't helpful.
Image
Current Project:
Image

Squishy Rex M
Contributor
Contributor
Avatar
Squishy Rex M
Contributor
Contributor
Age: 28
Reputation: 109
Posts: 254
Joined: 24 Feb 2014
Location: Australia

Post #2by Squishy Rex » 6 Dec 2015, 12:10

As for the Crushing algorithm, I'd probably suggest taking a look at the whole noblockcollision cheat or the God Mode cheat. If you get crushed while in God Mode you simply get spat out at the next available spot with no blocks. Maybe there is something there that may help, or even the noblockcollision NPC AI. I don't know much about the algorithms much but it might be a good starting point.
Squishy Rex's CGFX Pack v1.7
Image
To show your support add any of these Userbars to your Signature!
Image

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #3by Sambo » 7 Dec 2015, 5:17

I don't understand where you're going with this. I know what happens in God Mode when you'd normally be crushed. That's what I'm trying to fix. I have an idea that I think I'll try, though, using smaller hitboxes inside the player's hitbox. These will kill the player if they touch a block. It won't be quite as smooth as the real crushing system, but it should work.
Image
Current Project:
Image

HenryRichard M
Citizen
Citizen
HenryRichard M
Citizen
Citizen
Reputation: 0
Posts: 9
Joined: 23 May 2015

Post #4by HenryRichard » 8 Dec 2015, 2:33

Could you set the player's invulnerability time?

Sambo M
Topic author, Count
Count
Avatar
Sambo M
Topic author, Count
Count
Age: 25
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #5by Sambo » 8 Dec 2015, 6:16

Yes. I could. But how that would help to recreate the crushing system is beyond me. Could you maybe clarify that a little?

Edit: Oh, do you mean the player offset for invincibility (that triggers when the player is hit or just used a powerup)? THAT would probably work better than what I'm trying to do, and make it so it can separately affect each player. :) The flashing effect would be a bit annoying, though.
Image
Current Project:
Image


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest