ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator It's been a while...but
person icon
jctech
Registered User
Quote
2024-07-23 08:21:41

Hey guys

It has been quite a while since i have been on the forums or working on projects in CC.I started working on a small Quake Clone demo in Dec 2023, but then i started SimRacing and lost all interest in working on my projects, but for a good viable reason i believe.

Anyways, i just cannot get the game making/design bug out of me, so i started to ponder with some ideas again, but i hit a HARD roadblock, maybe it is my design or thinking skills, but here goes anyway:

If you have a scene, and you create 1 enemy soldier, with it's own variables(enemy1.health) and actions and animations, the 1 enemy soldier in the scene works perfectly, but my problem is, as soon as i desire to add another enemy soldier, i CANNOT just copy/clone the first one, i will literally almost have to create another exact copy from scratch, reason being is:

The first one has it's own unique variables assigned to it, so if i make a clone, i would have to go and rename the variables for the clone, which essentially creates A LOT of work, if you want for example 3 or more of the SAME enemy soldiers in a single scene, it's not just about "copy and past" and adding the enemy soldiers in, i would have to painfully rename variables for each and every one.

Well, that's my story, i am missing something to make life easier, or is that the way it needs to be done - i refuse to use ANY other engines, i half grew up with this engine

person icon
VP
Guest
Quote
2024-07-23 08:25:55

https://www.ambiera.com/forum.ph...

person icon
Guest
Guest
Quote
2024-07-23 09:27:51

@jctech

What unique variables are assigned to the enemy? It's hard to help you without seeing what it is you are doing. My guess is you need to use some JS to make things easier on you. Instead of putting the enemy directly in the scene, make a node that works like a spawn point for the enemy, then during runtime clone the enemy to that position, change its name, setup its unique variables, etc.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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