Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
I need a litl help in CC?

yoshik
Registered User
Quote
2017-03-05 11:49:58

Hello. I have 2 questions:

1) How to make the enemy to constantly chase the player and tried to harm him?
2) How to add glitchFX to screen?

🔎︎



jaimezegpi
Registered User
Quote
2017-03-06 13:41:56

mmm..
easy.. i think.. every few seconds move enemy to player position

var player = ccbGetSceneNodeFromName("player");
var enemy = ccbGetSceneNodeFromName("enemy");
var p_pos = ccbGetSceneNodeProperty(player, "Position");

ccbAICommand(enemy, "moveto", new vector3d(p_pos.x, p_pos.y, p_pos.z));

if you have configured your actors, enemy attack player always. if you dont.. you can add a attack action
ccbAICommand(enemy, "attack", player);

always you can make a behavior to do this or add more AI.


techno-valley
Registered User
Quote
2017-03-06 14:44:59

Brilliant !!

Excellent solution jaimezegpi as usual





Eminem100
Guest
Quote
2017-03-06 17:06:47

To add that glitch, add a png file of the fx and drag them to the camera on the control panel on the left up side of the coppercube window.


Create reply:


Posted by: (you are not logged in)


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