A downloadable asset pack for Windows

Download NowName your own price

Two behaviors that will replace standard AI and shot scripts.

Works without programming.

[Features]

  • Independence from standard AI and shoot scripts
  • Lots of comments in code
  • Variable Copper Cube to edit AI hp
  • Ability to change the code completely, as you need
  • Execution bullet action when hitting an AI or an obstacle
  • Good optimization
  • Mobile device support
  • JS variable "lastNGameAInode" for editing last AI parameters. Use it right in engine

[How To Use]

Bullet:
  1. Create a bullet mesh
  2. Add to bullet "collide when moved" and turn off "affected by gravity"
  3. Add to bullet "NGame bullet" behavior
  4. Specify bullet parameters
  5. Make bullet invisible
  6. If you need to shoot, copy the bullet and make it visible

I do not recommend using bullet behavior if the project uses physics simulation. The engine cannot update static geometry and bullets take up memory after deletion.

AI:
  1. Add to AI "NGame AI" behavior
  2. Specify AI parameters. Remember to remove the AI node after death

    [Parameters]

Bullet:
  1. shotFrom:object from which the bullet will fly
  2. damage:bullet damage. You can use CC variable "nodeName.health" to see/edit AI health
  3. bulletMovementSpeed: bullet speed. Do not make it very large
  4. range:range of a bullet. after this distance the bullet will be removed
  5. onImpactInNotAIObstacle:action on hitting a static object with collision
  6. onImpactInAI:action when hitting an object with "NGame AI" behavior
  7. shootToCameraTarget:a shot to the target of the current active camera
  8. additionalDamageCollision:the damage radius increases. Damage radius =additionalDamageCollision+bullet scale. additionalDamageCollision does not affect collision with obstacles
  9. additionalShootRotation:additional turn of the bullet flight. You can use this if shootToCameraTarget is off
  10. additionalShootPosition: when fired, the bullet has a "shotFrom" object position. additionalShootPosition is added to the starting position of the bullet
  11. hitSensitivityInObstacle:the radius of hitting obstacles increases. Hitting radius =hitSensitivityInObstacle+ bullet scale. hitSensitivityInObstacle does not affect collision with AI
AI:
  1. health: AI hp. Don't forget: you can use CC variable "nodeName.health" to see/edit AI health
  2. actionOnHit: action if the CC variable changes or the bullet approaches the AI
  3. actionOnDie: action at death. Don't forget to remove the AI
  4. movementSpeed: AI movement speed
  5. nodeToAttack: the object to which the AI will go (player)
  6. radiusOfAttack: if the distance to nodeToAttack is less than or equal to radiusOfAttack, then actionOnAttack will be executed
  7. intervalAttack: the speed of repetition of the action when attacking
  8. actionOnAttack: action when it is necessary to attack an object

Download

Download NowName your own price

Click download now to get access to the following files:

NGame AI and Bullet.exe 23 MB
NGame AI and Bullet.ccb 19 MB

Development log

Comments

Log in with itch.io to leave a comment.

(+1)

Thank you, this is very useful

Deleted 1 year ago
(1 edit)

There is literally a video explaining everything. Are you that lazy to look it up? Do you need someone to come to your house and do it for you? Come on man, just read the page!

Edit: VIDEO IS UP ON THE LEFT SIDE - just in case you get lost, kiddo. 

Hello. The person is not very attentive, but let's not quarrel.

You need to save it into the extension directory (Documents\CopperCube\extensions on Windows, ~/Documents/CopperCube/extensions on Mac OS X).

See https://www.ambiera.com/coppercube/doc/index.html