I need to write a simple 3 line interface, using text and two buttons per line,
so pointing the cursor on an component in my game brings this menu up on a screen on your arm using generic text-
Property 1 -
Property 2 -
Property 3 -
these will be to “program” channels for inputs, and motor limits, torques etc.
So clicking + cycles through the possible options for a property, like Property 1’s options are “option 1”,“option 2”,“Option 3”
I am not the best python coder, and would gladly make models or armatures, or write story line for a little help
or you could just make it and I can add you to the credits for my game,
So far it is me, and Akira_b and some people who want to contribute, but are still learning…
I can get away with a lot of logic code… but this represents a python issue to me
this project will go open source, with a clause that the google ad’s must be maintained in the loading screens, so we can keep adding parts and eating sandwiches and developing a small electronics test environment and a neat puzzle game and eventually a 3d representation of the internet
I know how to grab/change a property by clicking a button on said object, but I want to have it controlled by a single “screen” that is on the player, that interacts with the environment/components
I was thinking that it could read properties of a colliding object, and spawn invisible colliders or a ray that cycles through options, but don’t know how to get the name for a message based on a collision and store it to be used to send the “Cycle property 1 +” or “Cycle property 1 -” etc…
now how do I have it use what I click to change the propety of a object that another “targeting object” is touching?
I look at motor, I see the “properties” change to motors properties, then clicking while looking at motor changes property?
I love what you have done btw
So this works, but what I need is a little different, very nice solution though,
I need when an object is in front of you in your cross-hairs it pops up on a computer on your wrist, if it is a editable object (motor etc) you can change it’s properties by clicking(just like what you did) on buttons ON the screen, so
I can get this done with passing properties with set property and copy property, but my issue is the assignment of the target object to edit, I can copy properties with logic and set them with python, but I don’t know how to change the “Target” object
I wish I was better @ python… I just think ALOT better in pictures, and can’t seem to remember anything I learn about it
other then set property that I use to pass variables to logic like velocity etc…
I need a game object properties as properties tab…
you re right , your way give less dependeces(even to me like these dependences), the problem is that not there the text.
anyway i want try to de-centralize a bit
I have a text thingus, that can copy properties from any object that it is targeting with Copy Property-Target property and target object, so any property you can set I can use to do logic
these are what I need to change
attached is an example with the text, I can do that part myself, I just need to ajdust the copy property target armature I think, but I am not sure how
name
instance Identity tag
mass
velocity global
orientation
type
scale
Position global
ect
as a logic property by default that you could check on and off for each object
then with the in game editing system you could reshape things, as well as do what I need
[/quote]
I have make a menu with 18 buttons (+1)
every button have a function .
at moment to change force every axis + reset .
and the same for torque.
there also a button to destroy the object selected .
add other like this (tho change scale or position) is a lot easy
the problem STILL , the text. you cannot see any value .
using text obj seem out of discussion (too many)
i guess need the module blf to make text , but i never used
the script is long but i not guess is not excessively hard
maybe is redundant , is a bit experimental for me this menu
I ended up using a collision with an object to “target” the item with python, then I used spawning colliders to change values, so it does not need any message adress, it just spawns a cube that says Xpos or X neg, and the item changes its own values on collision,
what about a item selector, that targets a system, that can select through each prpoperty on a list, and only display that one, and then use two other mouseable items to change the value
Can you code base properties into a cube? like height, width and depth,
or radius 1 radius 2 for a torus?
a sphere etc?
you could even have Skew x -100----------------0---------------100
etc
that way you could adjust the value with adjusting the property,
like click object, select edit, and the menu pops up,
then you could build simple primitives in game,
add dynamic painting, and enough complexity…
and you can make a game map in a game… and turn the universe inside out…