Suggestion: ID Argument for getIntersecting Function

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

Post #1by Sambo » 2 Jun 2016, 3:53

The getIntersecting functions can be useful, but a frustrating characteristic is that the IDs cannot be filtered. This makes it so you have to "weed out" the objects that don't have the ID you want. Why not just add an optional ID argument?

I also just thought of this: I feel like some getXXXonScreen(id, distance) functions (where XXX is the object type) that grabs the objects of the given type on the screen would be helpful, particularly if there are tons of the object with that ID in the level. This would reduce overhead without causing much damage, since objects that are not on the screen don't usually need to be grabbed anyway. The "distance" variable is to set how far off the screen an object could be and still be found.
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 » 4 Jun 2016, 16:53

You can put that into the wishlist. I occasionally visit this page.
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
Image
Wohlstand in interview:
Spoiler
Image

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


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest