Suggestion: ID Argument for getIntersecting Function

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 » 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: 25
Reputation: 93
Posts: 379
Joined: 26 Apr 2014
Location: Austria
Website

Post #2by Kevsoft » 4 Jun 2016, 16:53

You can put that into the wishlist. I occasionally visit this page.
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.start() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬ Signature.end() ▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬


Return to “LunaLua - Extension Framework”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests