Thursday, 17 November 2011

Changes to Assignment Idea

After a bit of planning I decided that instead of one puck, each player will be firing pucks/bullets at the other players goals while defending their goals. Each player will have 100 health, and each goal takes away one health when hit. The game will be fast paced. The game will still have power-ups but they will be a bit different than the ones I said before. There will be a power-up that will put load of decoys flying around the arena. There be one that rez blocks and moving blocks in the middle of the arena for a short time. Another power-up will put 3 blocks in front of your goals, each block will absorb 2 hits before they disappearing. I’m going for a sci-fi look for the game with energy nets holograms. I will achieve this by transparency and glow. The main colours of the game will be red and blue because of the opposing teams.

Sunday, 13 November 2011

Week 8

Object Sends Email

This week I learned how to get an object in side of second life, to send an email to my Google account. I made two objects that contain two different scripts. One script uses a sensor to get the player’s name, and the distance they are from the object. Each player’s name and distance from the object is said on channel 1864.


 
The second object has a listen function, that listens to channel 1864. Every time there is something said on channel 1864, the listen function adds it to a list. When the second object is touched, the object emails the list to my email account. When I first tried this out all the text was on the same line, so I used \n to make a new line for the next player’s name and distance. Using second life to email me could be very useful. I could set up a script to email me if anything important happens in second life like: Some one got a new high score on my game, There is a problem with one of my games, Or I could set up a script for players to give me feedback and it could send it to my email.

Object Reads Sent Emails
The second task for this week was to send an email to a object, and get the object to read the email when touched. To get the object’s email address I got the object to email me first, I then replied to the email then touched the object to read the email I just sent.

LLEmail(Which email address to send too, Subject of the email, The content/body of the email)= Used to send an email.
LLGetNextEmail()= Used with Email(){}, This function gets the next unread email that has been sent to the object.
Email()
{
} = This function is used to read the emails sent to the object. The function has 5 parameters that gets: the time of the email, the sender, the subject, the body, and the remaining number of unread emails.

Sunday, 6 November 2011

Week 7

My First Gesture
This week we need to make are own custom gestures, using the animations that are already in second life. Gestures give the avatars move life/personality. If I wanted to I could use gestures in my assignment, when a player scores a point they could jump up in joy, it just adds that little bit more life to the game. The gesture I made this week is a mix between the point and finger wag animations. I put a wait in between the two animations, so the second animation does not cancel the first one out. I set the wait for 1.5 seconds so it will switch to second animation half way though the first one.

Qavimator
I tried out Qavimator, what is used to make animations for second life. I used the timeline to change the position of the bones over time. I don’t think I will be using Qavimator to do animations for my assignments, as I don’t plan to have any avatar animations for my game.

Tuesday, 1 November 2011

Assignment Game Idea

My idea for the assignment is to make a two player ice hockey game, but with a twist. The arena will be big and the players will be sitting on a rectangular prim. The prim will move left and right with the arrow keys or ‘A’ and ‘D‘. Player one starts off by shooting the puck, trying to hit one of 3 holes on the other side that belongs to player two. Player two need to defend their goals by blocking the puck, but also try to shot it into player one goals. Every time the puck hit’s a goal the other player gains a point, and the player who lost the points gets to shot the puck for the next round. In the middle of the arena are cylinder prims that will move up and down randomly, that will try to distract the player, but also could rebound the puck back into their goal. Power ups will also appear on the arena. There will be 3 types of power ups. The first power up puts two pucks in the arena, in till the second puck has been scored with. The second power up speeds up the puck . And the third power up puts loads of decoy pucks on the field for 29 seconds. I will not know in till I test these power ups out, but I believe they will add to the funny of the game, giving it a different feel to normal ice hockey.

Sunday, 30 October 2011

Week 6

HUD
For this week’s task I had to make a HUD that controls a box. The problem I had when making the HUD was the size, you need to make very small prims, as you cant resize the objects when you attach it as a HUD.

I made 4 classes for each of the moment buttons. The Class shouts the word left on a channel that I selected. The good find about the channel is that other people will not hear it.


This script listens to the channel I selected for each of the buttons. If any of the key words are used like back or right, the object will move in that direction. I think this would be usefully for sending dater between scripts.

Thursday, 27 October 2011

Week 5

Lists
The first task for this week was storing information in a list, when a player hits the object. When the owner touches the object, the object will tell the owner what’s stored in the list.

When a player or object has finished colliding with the script, the script will save information of the object that collided with the script in a list. When the owner touches the object, the list will display all the information it has got, one line at a time.


Notecards
The second task was for an object to read a note card that contains vector positions. Once the positions points are read, the object will move to them every time some one touches the object.

The script makes use of states. States are good if you want to use the object in a different way once a certain criteria has been meet. 


llSetText()

I was testing out the llSetText function that lets you put hovering text above an objects. You also get to select what colour the text is, what could be useful for team games.

Thursday, 20 October 2011

Week 4

For this week’s tasks I need to move a physical and non physical object in second life. The script I wrote moves a physical object to the second closest player near it. The script will not work if there is only one player in the area. The main reason I did this was because I wanted to test out moving an object to another object instead of to me.
llDetectedPod() = Get the position of a object/player
LlMoveToTarget() = moves the object to the selected location at a speed of my choosing.
The second script moves a non-physical object., but the difference with this one is that it does not move over time. But instantly jumps to the position.  When this script had been touched it will jump to four different locations over the course of 8 seconds.
llGetPos = Gets the current position of the object.
llSetPos = Set the position of the object instantly.