![]() |
Waiting...
Would it be possible, maybe like on the old multiplayer games to make it so if one player starts an event (2p event) a message pops up saying waiting... and it waits for another player to join? I was just thinking how cool that would be
|
most likely if you set some variables. something like this:
if (playerchats&&strequals(#c,play event)){ if (this.player==0){ this.playery+=1; message Waiting for next player.; } else if (this.player==1){ this.player+=1; message 2 players are now in. doEvent(); } } function doEvent(){ <your event here>; } Most likely something like that or you could use setstring. |
it wud
|
whats the code to check the current gani of the player?
|
Quote:
|
i have fun with this code!
if (created){ toweapons -ani checker; timeout=0.05;} if (timeout){ setplayerprop #c,#m; timeout=0.05;} its simple but ammusing |
Quote:
|
SetFocus
I think there are SetFocus problems...
i did this... // NPC made by Lord Helmut if (created) { x+=.4; y+=.7; } if(playerenters){ timeout=.05; } if (playertouchsme&&keydown(6)) { setfocus 31,28; disabledefmovement; playersprite=19; } if (timeout&&keydown(5)) { resetfocus; enabledefmovement; timeout=.05; } no matter what I try I cant get it to unset the focus and for some reason u have to hold A and run at the NPC for it to setfocus =/ |
for now its a image (button) on a wall and if they touch it and hit a its supposed to setfocus and if they hit s it needs to unset the focus but its not working =/
|
o damn, is that easy to fix?
|
better:
NPC Code: i dunno y i posted that, but i love it... |
Quote:
|
yay! i will help ya out lh.
|
| All times are GMT +2. The time now is 10:32 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.