Saturday, 29 October 2011

Week Six

This week we looked at HUDS!


First I went about creating the prims and adding the button textures.





















I then attached them and added the coding to move my object using the buttons. I haven't screen-captured the code in the button as it was copied from the code in the tutorial so I thought that would be a little pointless. I have screen-captured the altered code for the movement however.






















Friday, 21 October 2011

Week Five

This week we looked at lists and notecards.

The first two tasks were to write a script that records the Name, KEY and speed of an avator and/or object that collides with the object containing the script and when touched by the owner the script would read this information out in chat.

































The next task was to Read a list of named way points and their region coordinates from a notecard and move the object containing the script between the way points. At each way point it should say the name of the way point and turn to face the next before moving on.

I was a little lost with this task so a fellow student and friend offered to show me how to do it (their SID is 1005668/1) I also found that he notated a lot of his scripting which seems like a smart thing to do (especially with something this complicated) so I'll have to do that more in the future! I'm still a little confused by this task but hopefully I'll be able to go back at look at it in the future!








Lastly I played around with the llSetText funtion!



Friday, 14 October 2011

Week Four

This week we looked at moving physical and non-physical objects!


The coding below moves physical objects - I've also screen-captured my object as it's lifted upwards after it's touched!




















This coding below is for moving non-physical objects - I attempted to screen-capture tjhe result but my computer was having a problem with Second Life. The coding itself was as workable as I could make it, but there may be faults as I was unable to test it!











Wednesday, 12 October 2011

Week Three

This week was mainly a recap week, as we looked again at collision and detection. We also began looking at rezzing!

The first thing I did was make a wall and add the 'Barn Door' script that I found in the shop - I tested it by allowing my friend to crash into the object - thus the object detected the collision, and gave the name of the avatar that had made the collision and the speed at which it was travelling!





The next thing I did was to test the wall with the banana object!





And finally I added some script I'd written to detect the name of the object, the owner of the object and the speed at which it travelled for the collision!











I also played around a little with making a gun but I'm still working on perfecting that at the moment, so I'll probably add another blog post further on once I'm happy with it!

Wednesday, 5 October 2011

Week Two

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!)


After this week's exercises I feel a lot more comfortable with Second Life programming and I think I'm beginning to understand the basic principles!