Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
turret with constraints

dev
Registered User
Quote
2023-06-21 01:48:00

The title pretty much explains it, it is for a game were the player is a turret and there defending there base, any idea on how I could do that?

Thanks,


SamGrady
Guest
Quote
2023-06-21 03:55:24

i start teach all this "non code" stuff, so here some base turret example
https://drive.google.com/file/d/...
i feel better with js but now i'm sick and try something new for me, so don't judge me too much)))


dev
Registered User
Quote
2023-06-21 04:48:29

Thanks I'd like to think I'm pretty good at scripting I haven't learned allot about coppercubes API.


dev
Registered User
Quote
2023-06-21 04:49:14

do you have any idea if this is possible with a mouse?


Sam Grady
Guest
Quote
2023-06-21 04:53:08

With js easy))) but now is 5 a.m. and i go sleep so after 8-9 hours i will add some example


dev
Registered User
Quote
2023-06-21 04:54:17

Nevermind I found a already made script I appreciate you replying though.


Aiming_bullets
Guest
Quote
2023-06-21 04:56:44

checkout https://neophyte.cf , you will find extension, rotate with mouse or look towards target, that you can use for creating turret, also there is this video by JIC on his youtube channnel.

https://youtu.be/NkBBAdtIh9M

There are also many other examples by many users, you can try checking @sven's tank project and his itch.io page for turret example.

https://5v3n.itch.io/


dev
Registered User
Quote
2023-06-21 09:30:54

I did figure out a way to get what I was looking for, the only thing I'm having a problem with is the constraints part I can't seem to get it to stop smoothly and come back smoothly.

I appreciate your help though


spicymilk
Registered User
Quote
2023-06-22 02:04:38

Have you tried a script where it takes the rotation and if it's less than say 180 than allow it to keep rotating else do nothing

Hope that might help


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact