Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Mystery Guy

Pages: [1]
1
Modification Help / setEmitter problem
« on: July 15, 2010, 07:18:03 PM »
I tried to make a brick have a different emitter when it's planted, but I didn't manage to, as it just didn't seem to set, I tested it, using:
Code: [Select]
if(%brick.setEmitter(BurnEmitterA))
               echo("GOOD");
            else
               echo("BAD");
and it echoes "BAD".
The rest of the code for this brick executes nicely though:
Code: [Select]
..etc
else if(%brickdb.isFish)
         {
            if(%brick.setEmitter(BurnEmitterA))
               echo("GOOD");
            else
               echo("BAD");
            %brick.resources = %brickdb.resources;
            %brick.setColor(15);
            %brick.setColliding(0);
            %brick.setRendering(0);
         }
etc...
It sets the color to 15, collision off and rendering off, but not the emitter part.
Did I do something obvious wrong?

EDIT:
I managed to isolate the cause, by using comments:
Code: [Select]
..etc
else if(%brickdb.isFish)
         {
            %brick.setEmitter(BurnEmitterA);
            %brick.resources = %brickdb.resources;
            %brick.setColor(15);
            %brick.setColliding(0);
            //%brick.setRendering(0);
            %brick.setRaycasting(1);
         }
etc...

Why would setRendering make it stop to work?

EDIT2:
I changed it to
Code: [Select]
else if(%brickdb.isFish)
         {
            %brick.setRendering(0);
            %brick.setEmitter(BurnEmitterA);
            %brick.resources = %brickdb.resources;
            %brick.setColor(15);
            %brick.setColliding(0);
            %brick.setRaycasting(1);
         }
And now it works? What did just happen?

2
Modification Help / Overwriting centerPrints?
« on: November 05, 2009, 05:12:03 PM »
My script doesn't work the way I wanted. A friend of mine told me the centerPrints were overwritting each other. He told me to use schedules, I tried to search for a solution but didn't find any. May anyone fix it please.

Quote from: server.cs
function serverCmdpoints(%client)
{
   commandToClient(%client, 'bottomPrint', "<color:FFFF00>You have" SPC %client.points SPC "points");
}
package test
{
   function gameConnection::onDeath(%client, %sourceObject, %sourceClient, %damageType, %damLoc, %y, %x)
   {
   parent::onDeath(%client, %sourceObject, %sourceClient, %damageType, %damLoc, %y, %x);
   %playername=%sourceClient.getPlayerName();
   %killedname=%client.getPlayerName();
   if(%sourceClient==0)
   {
      %playername="the enviroment";
   }   
   if(%client!=%sourceClient)
   {
   commandToClient(%sourceClient, 'centerPrint', "<color:FFFF00>You 0wn3d" SPC %killedname SPC "\nYou won 1 point",3,2);
   %client.centerPrint("<color:FFFF00>You died haha\nYou got 0wn3d by" SPC %playername SPC "\nYou lost 1 point",3,3);
   %client.points--;
   %sourceClient.points++;
   }
   else
   {
   commandToClient(%client, 'centerPrint', "<color:FFFF00>You died haha\nYou got 0wn3d by" SPC %playername SPC "\nYou lost 1 point",3,3);
   %client.points--;
   }
   %client.spawnPlayer();
   serverCmdpoints(%client);
   serverCmdpoints(%sourceClient);
   echo(%sourceClient);
   echo(%playername);
   echo(%client);
   echo(%killedname);
   }
};

activatePackage(test);

Quote from: part that isn't working
if(%client!=%sourceClient)
   {
   commandToClient(%sourceClient, 'centerPrint', "<color:FFFF00>You 0wn3d" SPC %killedname SPC "\nYou won 1 point",3,2);
   %client.centerPrint("<color:FFFF00>You died haha\nYou got 0wn3d by" SPC %playername SPC "\nYou lost 1 point",3,3);
   %client.points--;
   %sourceClient.points++;
   }
   else
   {
   commandToClient(%client, 'centerPrint', "<color:FFFF00>You died haha\nYou got 0wn3d by" SPC %playername SPC "\nYou lost 1 point",3,3);
   %client.points--;
   }

Thank you!

3
Creativity / My first Bedroom with Torque Constructor
« on: February 26, 2009, 05:31:29 AM »
After learning how to use Torque Constructor, I started working on a Bedroom.
As I couldn't find the textures I needed, and Flash didn't work, I used paint and random stuff to do it.

Here are some pics:
The keyboard:

The bed:

The computer screen:

The computer tower:

The mini city:


Also, as I have Blockland Demo, I can't put that interior on a mission, if you are willing to do it for me, please PM me.

4
Off Topic / Hello Blockland Community!
« on: January 27, 2009, 04:04:00 AM »
I am Mystery Guy. I have and still play Blockland demo for a long time, but, very soon i will get it. I am usually friendly and I use English to type, I like making requests even if they use noobyness.
I am good at flash, and i have lots of free time. Also, some Torque help would be useful.

Hope you like me, and good bye

Regards,
Mystery Guy

Pages: [1]