Discuss Scratch

21nely
Scratcher
15 posts

Online Platformer Engine

Okay, my game Halo Chronicals is being updated. My only issue is that it has an online mode. How do I make it so that I can get other people showing on your screen? (Yes, it's a center screen platformer. Need example? Mario.) PLEASE HELP!
playsoundTHE FINAL COUNTDOWN.mp-over9000untildone
HardClaw57
Scratcher
500+ posts

Online Platformer Engine

It's extremely hard. Only the absolute best can even attempt it.
And it's going to be laggy. Very laggy.
21nely
Scratcher
15 posts

Online Platformer Engine

HardClaw57 wrote:

It's extremely hard. Only the absolute best can even attempt it.
And it's going to be laggy. Very laggy.
First of all, THAT WAS FAST! And it is really crucial to the game, so I should find a way to simplify it… Welp, TIME TO GET TO WORK!
pointtowardscomputer
set Statusto Working on HC
wait1000000000000000000^9765678765456787654567876545678secs
set Statusto Free
thelostgames
Scratcher
58 posts

Online Platformer Engine

yayyayyay

Last edited by thelostgames (Jan. 23, 2016 03:21:44)

zp100
Scratcher
100+ posts

Online Platformer Engine

It's not really that hard, but it's a fair amount of work, and it is very laggy. It wouldn't work very well for a platformer. I could still show you the scripts, though, if you want.
The_Codr
Scratcher
55 posts

Online Platformer Engine

Use cloud variables

For player one they would be player1x and player1y
For player two they would be player2x and player 2y
zp100
Scratcher
100+ posts

Online Platformer Engine

turtiletoes wrote:

Whwtyhgf hi.
Please don't spam.

The_Codr wrote:

Use cloud variables

For player one they would be player1x and player1y
For player two they would be player2x and player 2y
Yes, that's what you would do, but, as said before, it would be VERY laggy. It can take up to a few seconds for cloud data to update, which is not good for an online game, especially a platformer.

Last edited by zp100 (Feb. 7, 2016 00:35:56)

21nely
Scratcher
15 posts

Online Platformer Engine

zp100 wrote:

It's not really that hard, but it's a fair amount of work, and it is very laggy. It wouldn't work very well for a platformer. I could still show you the scripts, though, if you want.

Sure. Probably going to make a different project.
deck26
Scratcher
1000+ posts

Online Platformer Engine

The idea isn't that difficult but the implementation, as has been suggested, is unlikely to work very well. Essentially each player has ‘real world’ x and y coordinates which tell you where they appear in ‘real world’ terms. Your local values of scrollX and scrollY have to be applied to those ‘real world’ coordinates to decide where/whether they appear in your screen coordinates.
21nely
Scratcher
15 posts

Online Platformer Engine

deck26 wrote:

The idea isn't that difficult but the implementation, as has been suggested, is unlikely to work very well. Essentially each player has ‘real world’ x and y coordinates which tell you where they appear in ‘real world’ terms. Your local values of scrollX and scrollY have to be applied to those ‘real world’ coordinates to decide where/whether they appear in your screen coordinates.
That would work, but my only problem is the lag. How can I fix that?
zp100
Scratcher
100+ posts

Online Platformer Engine

21nely wrote:

deck26 wrote:

The idea isn't that difficult but the implementation, as has been suggested, is unlikely to work very well. Essentially each player has ‘real world’ x and y coordinates which tell you where they appear in ‘real world’ terms. Your local values of scrollX and scrollY have to be applied to those ‘real world’ coordinates to decide where/whether they appear in your screen coordinates.
That would work, but my only problem is the lag. How can I fix that?
Remove firewalls on your computer, close other webpages, and get a faster internet connection.

Last edited by zp100 (Feb. 10, 2016 23:26:15)

Powered by DjangoBB