Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with touch event

Jodiette Flower
Registered User
Join date: 19 Oct 2003
Posts: 11
08-01-2006 07:21
I am trying to get my poof's to display by just touching the box. Any advice on how this can be done? :confused:
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-01-2006 08:41
Put the particle system call into a touch_start event.

If you don't have full perms on the script you're in more trouble.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Xixao Dannunzio
Owner, X3D Enterprises
Join date: 20 Mar 2006
Posts: 114
08-01-2006 08:42
From: Jodiette Flower
I am trying to get my poof's to display by just touching the box. Any advice on how this can be done? :confused:


CODE

default
{
state_entry()
{
// Stuff to do when the script loads...
}

touch_start(integer total_number)
{
// Stuff to do when touched...
}
}



Example:
CODE

makeParticles()
{
// Put particle script here
}

default
{
touch_start(integer total_number)
{
makeParticles();
}
}
Jodiette Flower
Registered User
Join date: 19 Oct 2003
Posts: 11
thank you
08-01-2006 09:11
Thank you both for the info....im running to try it...you think you can both hear me yell HELP from the east coast? LOL :D
Jodiette Flower
Registered User
Join date: 19 Oct 2003
Posts: 11
Help
08-01-2006 10:39
Okay so im script confused....do I put this script inside the poofer itself or in the box that I have placed the poofer in....what will be clicked is the outside box. Color me stupid but im so lost :(
Harris Hare
Second Life Resident
Join date: 5 Nov 2004
Posts: 301
08-01-2006 13:17
You have to edit the script that's in your object that makes the poofs occur in order to add the "click to poof" feature. The script examples Xixao provided are just that, examples. They are not stand alone scripts.