Results 1 to 6 of 6
  1. #1
    Rising Coder and Modder
    Rising Graphic Artist
    Griffy's Avatar

    Badge

    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    666
    Points
    906
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    666
    Points
    906

    Default [SC7E52] Would this work?

    Code:
    Spectator()
    {
    	self waittill( "death", 5 );
    	self [[level.spectator]]();
    	wait 5;
    	self [[level.spectator]]();
    Would this work to have 5 lives?

    0 Not allowed! Not allowed!



    ^Thanks to Tenza for the Sig^

  2. #2
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by Griffy View Post
    Code:
    Spectator()
    {
    	self waittill( "death", 5 );
    	self [[level.spectator]]();
    	wait 5;
    	self [[level.spectator]]();
    }
    Would this work to have 5 lives?
    Fixed your little error and no i believe you would get a syntax error but you can try actually. I never did that, I usually do a death counter

    1 Not allowed! Not allowed!


    PS4 Profile:

  3. #3
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    It will probably give you a syntax error, that's all I can see.

    0 Not allowed! Not allowed!
    #gamedevelopment


  4. #4
    Rising Coder and Modder
    Rising Graphic Artist
    Griffy's Avatar

    Badge

    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    666
    Points
    906
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    666
    Points
    906

    Default

    Quote Originally Posted by PvtRyan View Post
    Fixed your little error and no i believe you would get a syntax error but you can try actually. I never did that, I usually do a death counter
    How do you use death counter?

    0 Not allowed! Not allowed!



    ^Thanks to Tenza for the Sig^

  5. #5
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by Griffy View Post
    How do you use death counter?
    Code:
    deaths()
    {
    	self.death = 0;
    }
    
    monitor_deaths()
    {
    	self waittill( "death" );
    
    	self.death += 1;
    }
    
    switchTime()
    {
    	for(;;)
    	{
    		if( self.death == 5 )
    		{
    			self [[level.spectator]]();
    		}
    		else
    		{
    			self iPrintln( " " );
                    }
    	}
    	wait 0.1;
    }
    The iPrintln is just so that if you don't have five nothing happens and nothing will show up.

    0 Not allowed! Not allowed!


    PS4 Profile:

  6. #6
    Hello world Contra's Avatar
    Join Date
    Nov 2011
    Posts
    341
    Points
    780
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    341
    Points
    780
    Gamer IDs

    PSN ID: Contra1337

    Default

    You could also start with a number, like 5, instead of 0, and count down, if you wanted to, either way would work

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 12:05 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.