Menu Content/Inhalt
Home arrow Worlds
Bee Swarm Script
 
This script adds a swarm of bees to your Blink 3D world - you can see it in action here. You can easily edit the script to change:
  • The starting point of the swarm
  • The number of bees
  • An area that triggers the swarm to follow the avatar

You can download the zip file here. After you've downloaded it,  extract all the files to the Scripts directory of a Blink 3D  project:

  • bee.ogg (the bee sound)
  • bee.png (the picture of the bee/wasp! with a transparent background)
  • bee.material (the material file for the bee)
  • PostWorld.js (the script file)

Feel free to adapt these as necessary - the script file* is commented to show you the bits to 'tweak' to suit

Now all you need to do is republish your world with the Blink 3D builder and the swarm should be added to the published page (you won't be able to see the swarm in the builder itself).

Whenever you make any changes to the script please remember to republish your world afterwards as these changes only get added after publishing.

If you have any comments about the code or want help with using or adapting it please visit our forum.

*as the script includes adaptation of some code by Thomas James Allen (http://getyourwebsitehere.com/index.shtml) please remember to leave his copyright reference and details in the code as acknowledgement.

 

 
< Prev   Next >
designed by www.madeyourweb.com