Soccer.cs [PlusEMU]

LucasRub

New Member
Jan 23, 2017
11
1
Hello,
I have start code soccer in PlusEMU.
I have one problem.. the ball is very slow..

Do you know why?
Thanks
 

Core

Member
Nov 10, 2016
356
138
Change the speed of it?
That's not really much help is it :/


To do it go to Soccer.cs, find public void OnUserWalk(RoomUser User) and change the new position of the ball to be 2x what it currently is, say if it goes up 2 and across 1, then do 2*2 and 1*2. Don't actually times the new coordinates.
 

LucasRub

New Member
Jan 23, 2017
11
1
Je Dois regarder Dans Marshallow Emulator i utiliser ObjectUpdateMessageComposer.
Et pour Cyble de football:

if (this.loadedBallRooms.Count > 0)
{
TimeSpan sinceBallLastTime = DateTime.Now - cycleBallLastExecution;
if (sinceBallLastTime.TotalMilliseconds >= 180 && roomCyclingEnabled)
{
cycleBallLastExecution = DateTime.Now;
foreach (Room Room in this.loadedBallRooms)
{
try
{
if (Room.GotSoccer())
Room.GetSoccer().OnCycle();
}
catch (Exception e)
{
Logging.LogCriticalException("INVALID MARIO BUG IN BALLMOVEMENT: <" + Room.Id + "> :" + e);
}
}
}
}
 
up?
 

Users who are viewing this thread

Top