Jump to content


Photo

Quick online question - solved


  • Please log in to reply
2 replies to this topic

#1 amberyoukai

amberyoukai

    GMC Member

  • New Member
  • 300 posts

Posted 19 September 2011 - 06:38 PM

Hello there,

I have a little question about online.

I'm making and online game(server and client)
And let's say I use
sprite_add(and eveything that goes here...)

I would need the server to make it load in each client right?
And if the player isn't in the room anymore do I have to "delete" the loaded files or they delete themselves?

Thanks,

Edited by amberyoukai, 19 September 2011 - 06:46 PM.

  • 0

#2 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • Retired Staff
  • 9260 posts
  • Version:Unknown

Posted 19 September 2011 - 06:40 PM

Assuming the clients don't have the image files on their end, your server will need to send the image files to each client. Then the clients would load them with sprite_add(...).

Resources never delete themselves. Ever. So when you load external resources, you should always delete them when you no longer need them.

-IMP

Edited by IceMetalPunk, 19 September 2011 - 06:40 PM.

  • 0

#3 amberyoukai

amberyoukai

    GMC Member

  • New Member
  • 300 posts

Posted 19 September 2011 - 06:45 PM

Alright thank you very much!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users