التخطي إلى المحتوى الرئيسي

بحث

Objective marker that moves around the screen edges

  • daniel-hamster

    i havent made anything similar to it but heres a idea: you need 4 timelines if you want the icon follow on the left and right too. in each time line you just add a keyframe to the textbox of your icon that moves it from beginning of the edge to the end of the edgeline. i need to test the next parts first but heres the rest of the idea: Stamp a Tag "Mission" to the Mission area and a Tag "Puppet location" into the puppet. Stamp two followers with infinite range (not local area) into the puppet that follow those Tags mentioned. connect the "target position" output of each into a splitter. now you should get the X,Y,Z coordinates of the puppet and the mission (not sure if its really like that) then just make the values unlock and controll the timelines, this is actually very hard to do. but play around with the coordinates and maybe try triggerzones with border settings. Good luck

  • Schlomonator

    Thanks for the answer! The timelines part is exactly how I imagined doing it.

    If this target position value really corresponds to proper coordinates, that would certainly be a big step towards getting the angles. I hope it's different from the "transform" value that you can get from a tag, which is a mystery to me (it gives 3 numbers as well, but those didn't seem to behave like coordinates when I tried it).

    Anyway, I'll experiment with the followers like you suggested and see how things go.

  • Supposer

    If you have a tag in the position you want to point to, sending a follower to it with another tag won't necessarily help? Unless I misunderstood what you said, @daniel-hamster.

    I have some ideas on how something like this could be done. I'll have a play and let you know if I come up with something.

  • Schlomonator

    So I figured out how to get the coordinates out of the transform value, but now I'm stuck at another part: How do I get the position of the camera?

    You can't attach anything to a camera, but you can group it with something. But I only managed to do that with static cameras. How do I do that with a camera that's moving around? Do I have to program a camera that works like the default camera??

    I guess it would be easier to create an invisible object or something that follows my character and changes its orientation depending on the camera.

  • Supposer

    I tried out an idea for getting something like this working, but couldn't quite figure it out. I did however get something similar working for a 3rd-person top-down view where arrows appear on the ground that point towards goals. https://www.twitch.tv/videos/434709233

    @Schlomonator: Add a global settings gadget, from gameplay gear. On the second tweak menu page is the camera scene transform output. Try splitting it to see what it contains.

  • Schlomonator

    Äh, the global settings gadget, thank you so much! I didn't think to look there and instead got lost in the wildest workarounds.

    I hope I'll be able to figure the math out now.

الرجاء تسجيل الدخول لترك تعليق.