This week we were looking at collisions and sensors!
Exercise One:
The first exercise was to write a script for an object that greeted my avatar by name with a Good Morning/Afternoon/Evening message in correlation with the time in Second Life when touched.
I have tested the script over and over and I couldn't manage to get it to work correctly. Even after referencing fellow students work, I still couldn't find a way of getting the script to function as it should! That being said I thought it was still worth posting my attempt as it shows the general idea I was going for.
Exercise Two:
Exercise two was to write a script for an object that when collided with says the name of the avatar/object that collides with it, along with the speed at which the avatar/object was traveling and the owner if it was an object.
This script was definitely easier to write than the first exercise, but it was still challenging and I got some tips from a fellow classmate.
Exercise Three:
Exercise three was to write a script that looks for avatars within a fifty metre radius when my avatar touched it, along with giving the names of the other avatars it can see. There was also to be a variable so that if someone else touched it, it would only search within a twenty-five metre radius.
The screen shot below shows what happened when my friend (not the owner of the object) touched the box; although he talked off screen before I could printscreen it you can see his cloak just whipping out of sight behind the script box!)




No comments:
Post a Comment