Sunday, 20 November 2011

Assignment Idea!

After much thought and deliberation over the Second Life game, I've finally come up with an idea that I'm happy with.

As I'm not too confident with programming in Second Life (something that I can't really explain, but it has just never managed to click with me) I decided to go with something very simple - with the expectation that I'd develop it to a more well-rounded game as I went along.

My idea is something akin to a 'Treasure Hunter' type game - the player would choose their difficulty setting (the more difficult, the more thins there are to find) and then the game would scatter/spawn a certain type of item around the area for the players to go and find - with the game timing how long they take to gather the objects!

I know the idea is pretty simple, and easy to implement - but as I've stated - I'm not at all confident with Second Life so for my own good I thought I should start with something I can at least handle!


I'll be updating my blog as I progress through the creation of this game!

Monday, 7 November 2011

Week Eight

This week we looked at Qavimator and the animations you can make with it!


First I tried something simple - a bow.




















Next I tried a 'clap' type animation.
















I then just did a bit of messing around with the animator to test out some of the movements available!



Friday, 4 November 2011

Week Seven

This week we looked at communications, chat and email!

The first task was to create an object that when touched, ran a sensor for avatars within the maximum sensor range. We then had to create a script that would send an email to an address of our choice with information we'd asked for.










The second task was to send an email (from my Anglia account) to an object and have it display the text when it is touched.


















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!

Saturday, 24 September 2011

Week One

This week, due to family problems I was unable to attend class. Instead I just followed the VLE and completed the set tasks.

To start with I decided to get accustomed to using Second Life again, and getting used to the various building techniques. It didn't take long to refresh my memory and I found it a lot easier than my first building attempt last year!









After that, I got to work on the exercises for this week; creating a number of scripts to perform various actions.

At first I found the script a little daunting, having become rusty with my programming over the summer, but after a little thought and some later tuition from some fellow classmates who understood Second Life scripting a lot better than myself, I managed to pull off the exercises!