Disabling a platform's physics

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.
Moderator: Moderators

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

Post #1by Sambo » 21 Feb 2016, 0:21

I can't set the platform NPC's speed. Regardless of the value I try to set, its behavior stays as normal. Actually, setting the speed fields doesn't seem to do anything to any NPC. So, how can I override an NPC's physics so I can directly control its movement?
Image
Current Project:
Image

Kevsoft M
Angry developer
Angry developer
Avatar
Kevsoft M
Angry developer
Angry developer
Age: 19
Reputation: 77
Posts: 376
Joined: 26 Apr 2014
Location: Austria

Post #2by Kevsoft » 21 Feb 2016, 10:35

▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
Image
Wohlstand in interview:
Spoiler
Image

▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬

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

Post #3by Sambo » 23 Feb 2016, 7:41

What about NPC-104? There's only a Y-speed AI field for that one.

Ok, just got it to work (with SMW plaforms only. still can't figure SMB3 platform). However, gravity still tries to move the platform, and it starts moving down a bit before the script runs on each loop. This makes it drift downward slowly (speed = 0.2599999990584... or something). I tried setting the Y speed field to -0.26 but the platform still drifts down slowly. It would be nice to be able to disable gravity for an individual NPC. (If it were for all of them, that would break things)
Image
Current Project:
Image


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest