hogsy / jaded

A repository for raising any tickets relating to Jaded, the Community Patched Jade Engine. There is no code here.
https://oldtimes-software.com/jaded/
1 stars 0 forks source link

[Feature] Built In Spawn Distance System #51

Open ShowinGrowin opened 7 months ago

ShowinGrowin commented 7 months ago

Summary

What I'm requesting is a param option for every object that lets the user set an object distance, per object. This will control when the object is in an inactive state, and easily let the user manage when objects should be loaded.

User Story

Currently (as far as I can tell), the engine doesn't have a reliable object spawn system that doesn't rely on hacky solutions based on other objects to micro manage everything. Technically those might raise the ai limits or other limits regardless, so it's really just making the best of a bad situation.

Acceptance Criteria

To clarify, this is what should happen.

  1. Object is in range, but not set to active for its state so it's not active.
  2. Button is pressed which sets its state to active, and the object is in range, so it turns on.
  3. Player leaves range, this means the object is made inactive, but its state remains the same.
  4. Player enters range once more, this makes the object active because its original state remains the same and no longer needs a trigger to turn back on.

Mockups or Wireframes

image

How things work in Sonic Generations as an example. The range is set to the value at which the object will load. This is a global param for all objects.

Risks or Challenges

This could have an impact on all previously added objects and could be a potentially tricky task depending on how the engine handles these sorts of things.