Pixel Per Second and Multiplayer

0 favourites
  • 11 posts
From the Asset Store
Per Pixel Destruction like in "Worms" (perfect performance, no third party plugins)
  • Just a though experiment..

    I saw that for example the speed 8Direction Movement is running on Pixels per Second.

    Wouldn't this mean that if i have a button to adjust window size, that it would also change the movement speed of the player who changes his window size?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't get the question, i think you mean if the window size changes.. but the most used way to keep the same movement Speed is (multiply)* per Delta Time.

    Example : speed * deltaTime;

    Hope this works for you.

    :)

  • I don't understand it fully but when you resize a window you aren't adding (or subtracting in your case) pixels to make it move slower or faster. So it shouldn't affect the speed if someone resizes the window.

    Hopefully this makes sense and I understood what you're trying to say.

  • when you resize a window the size of the world inside that window isnt changing only your view of it

  • Schoening

    I'm interested to know why you have 'Multiplayer' in the topic title. Are you thinking of the situation where a player adjusts his/her window size independently of other players?

    Even in that situation, there could not be any effect on the movement speed of his/her own player.

    The reason is that play is taking place within the canvas/layout, which itself is within the browser window, whose resizing necessarily has no effect on the predetermined size of the canvas/layout within it.

  • Nothing happens, the speed is the same no matter what

  • I think he wants to make a cut in the middle of the screen and make a double view or something.

  • Schoening, I think you're possibly confusing the speed on your screen vs. the speed in the "game world" (layout co-ordinates). The size of the window has no effect on how fast objects are moving in layout co-ordinates. If you play a game on an iPhone, then get some super-powered mega-laser and project the entire game on to the surface of the moon (how cool would that be?) - possibly the biggest screen imaginable - you'd still be moving at exactly the same speed in the game. It's just displayed bigger!

  • Velojet

    I'm interested to know why you have 'Multiplayer' in the topic title. Are you thinking of the situation where a player adjusts his/her window size independently of other players?

    Yes that was the idea!

    All the rest, also thx <img src="smileys/smiley17.gif" border="0" align="middle" />

    I don't know why it didn't occur to me that it is just resizing the game, and still uses the pixels from the "game world" like Ashley said..

    Perhaps i got confused because I've read that if you don't use

    * Delta Time, Different Framerates will change the tick speed.

    (yeah that's probably it..)

    Thx all :p, was just a thought though xD, but a Zoom Function could be interesting for my game..

  • C2 most certainly has a zoom function... A few options, actually...

  • C2 most certainly has a zoom function... A few options, actually...

    Love your game btw

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)