Suggestion: Logic Brick : Inherit Logic From [Object] #1603
Ifelsethendo
started this conversation in
Ideas/Features for UPBGE 0.3+
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ever notice how messy Logic BrIck UI gets? It looks like a 19th century telephone switch board.
Wouldn't it be nice if you could make some Empty Objects,
Label them like:
Player_Move
Player_Jump
Player_Rope
Player_Attack
Player_Inventory
Do all the specific scripting in there.
Then on your player object just have
Brick : Inherit Logic > [Player_Move]
Brick : Inherit Logic > [Player_Jump]
Brick : Inherit Logic > [Player_Rope]
Brick : Inherit Logic > [Player_Attack]
Brick : Inherit Logic > [Player_Inventory]
And pass all the scripting and properties to the object at runtime?
It's been a long time since I used Unity but it does something along this line with [Serialize Field]
Here's a simple example of that: https://youtu.be/TwpAdh--dGk
Beta Was this translation helpful? Give feedback.
All reactions