Attaching a Collider to an NPC

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: 26
Reputation: 15
Posts: 264
Joined: 27 Jun 2014

Post #1by Sambo » 17 Feb 2016, 8:24

I need to make a script that grabs all platform NPCs and wraps (with pnpc.lua) any new ones that spawned in the current frame , then creates a collider in the middle of each platform NPC that has just been wrapped. This collider must be associated with that NPC (That is, the same collider must be paired with the same NPC it was created with, and stay attached to its position each frame). I just can't wrap my head around a good way to do this.

I realize that this is worded very badly. Hopefully you can decode its meaning. :(
Image
Current Project:
Image

Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 4 guests