Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, Guys I am new to the forums, but not that new to game making, i started a FPS beta project years ago with game maker and never finished ![]() Here is the link if you guys want to check it out: https://www.yygarchive.org/game/191795 Now my question is, i am using Coppercube, currently using a 2d overlay with an image which i animate(change texture) at certain intervals while walking to simulate the weapon moving. Now if i want to use an actual 3d object for the weapon, how can i make it move or bob around, it's a static mesh, not animated. I was thinking of using the change position of 3d object every few seconds with some variables so it looks like the weapon is moving about as long as you are moving with the w key pressed. Is that the right approach? |
||||
|
You can add a transparent animated mesh and attach static gun as a child to that transparent mesh, and now make that animated mesh a children of the FPS camera, and there you go, you will have a real bobbing effect for your gun, it also depend on the animation of your main character. |
||||
|
Thanks, i will give it a try and let you know, sounds like a good plan |
||||
|
welcome @joecoetzee as another approach you could also make two invisible copies of your weapon (or simply use cubes or empties) with slightly changed positions have all three meshes parented to the FPS camera and then let your visible weapon mesh loop animate between the positions of the both auxiliary meshes every defined seconds with this CopperCube Transform To Target action: https://hadoken-records.itch.io/... |
||||
|
Thanks for the welcome! Your approach is also very interesting, i will have a look tonight after work - thank you |
||||
|
Or you can achieve the same result by coding a simple behavior. // The following embedded xml is for the editor and describes how the behavior can be edited: demo:https://drive.google.com/file/d/... |
||||
|
And people says, community is rude with newbies, 3 different solution to one small thing. What else you expect from a good community? |
||||
|
Thanks guys!! All suggestions work great!! One step closer to completing the weapons. ![]() |
||||
|
Hi joecoetzee, welcome to the forum! You can to do this with "follow a path" You atach the "follow a path" in the player and this way you can balance the weapon while you walk! |
||||
|
Hey guys I tried the methods, and they seem to work great, you can check it below, i made a small demo https://jctech.itch.io/quake-c |
|