Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Camera/Photo System

fufusig
Registered User
Quote
2023-08-06 23:14:28

Hello, i need some help

i am making a game where the character has a camera. i have made the camera ui and controls and everything. the only thing i need now is for the camera to actually be functionable. i want the player to be able to take pictures ingame with this camera, and for the pictures to be saved for later use (in this case the player will deliver the pictures in return for ingame money/points)

thank you for help in advance!


Monks
Guest
Quote
2023-08-07 10:14:09

Hi, humbly check the coppercube documentation, it has a javascript function for taking screen shots and utilise to your wants


fufusig
Registered User
Quote
2023-08-09 16:38:31

yes, i found that out, thanks.

but it only saves one image, and overwrites it every time o take a new pic ingame. anybody have a way of making it save multiple photos


Guest
Guest
Quote
2023-08-09 20:16:41

You need to change the name of the photo each time you take a screenshot or it will just overwrite the first one. Ex: photo1.png, photo2.png, etc.


count2rfeit
Registered User
Quote
2023-08-09 20:43:07

you can create a variable and add(+) 1 to it every time a screenshot is taken.
If the variable equals 1 then you can use the JS and name the screenshot as photo1
(If A Variable Has a Value Do Something)

If the variable equals 2 then you can name the screenshot as photo2

and so on....


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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