NetOne's Forum Posts

  • Just FYI

    chrome bug updated

    [quote:28opv9ra]Fixed in M68 with UserActivationV2 enabled

    nice!

  • Chrome bug

    Guys, this has only 7 stars,

    it would benefit anyone hoping to have joypad input in their games to star this

    go go go

    https://bugs.chromium.org/p/chromium/issues/detail?id=381596

    it has been open since 2014!, it is possible they are working on it now I dont know, the chromium bug trails always confuse me.

    But a few more stars and they might treat it seriously.

  • Dude..... rojohound I know if Mr Rojohound is doing something it has to be interesting ...... and usually I can just about wrap my head around what you are doing.....

    but my brain cells are rapidly deteriorating in recent years due to excessive alcohol consumption and I've looked through the events and run the cap but this one has me stumped ....

    i know you have explained to newt but if you dont mind .... for the layman .... what am I looking at, what can it be used for, why cant this be done with normal events? I feel like I/we am/are missing something special here.

  • Ashley

    Scirra

    Guys i notice that you open the demos directly into the editor.construct.net using a "#open" tag

    eg. https://editor.construct.net/#open=demonoire

    is it possible for users sharing c3p files to also do that?

    i.e. share a link that will actually open a c3p in the editor online ?

    would be pretty cool for sharing / helping / collaborating

    cheer

  • So I made a bug report

    https://github.com/Scirra/Construct-3-bugs/issues/1606

    Not sure if a C3 bug tho maybe chrome ignoring button press as a trigger.

    here's the c3p if you want to try

    https://drive.google.com/file/d/1BFGQCLHUYdxlPmWAd5WE0ezBhh7tGPOP/view?usp=sharing

  • Hmm.. yea you will be processing more pixels so that will give you a hit. But most modern graphics cards should eat that up no problem. Maybe not on mobile though.

    I wouldn’t have thought the hit would be compounded by layout complexity though (unless you are stacking a lot of things on top of one another) as you are still processing the same number pixels and anything outside the window is not drawn.

    anyway i recall when i made a low res platformer I had similar issue and did this

    try a simple lerp

    https://www.scirra.com/tutorials/626/ma ... ing-camera

    but use lerp like this ( a = lerp(a, b, 1 - f ^ dt) ) as described here

    https://www.construct.net/fr/blogs/ashl ... a-time-924

    but then the trick is to stop the lerping camera from trying to complete the lerp all the way to the player

    so stop it when it is 80 % 90 % there , this stops the slow lerping from pixel to pixel causing jumping around.

    there are a few ways to do this , maybe mess with the formula above or just have a large hidden collision sprite that stops the lerp

    there are lots of other things you could do to smooth out camera and limit unwanted movement

    camera systems can get real complex.

    AND/OR you could scale up all you assets layout and window size by a factor of 2 or 4 etc

    this will allow you to increase the movement resolution but still fake low resolution and without using fullscreen scaling high,

    not 100% but i think many new pixel art games take this approach, (also allows high res lighting and a soft anti aliasing (linear sampling.)

    AmpedRobot

    Dude, seriously, what is wrong with you? before you start ranting and cussing the software it might be worth sharing an example file of what you are trying to do.

    RIght now you just sound like an ass.

  • > Basically the camera is jumping from pixel to pixel at the low window resolution (312 x 240)

    >

    > The quick and simple solution is to set both

    >

    > Fullscreen Quality to High

    > Pixel rounding off

    >

    > ....

    >

    .....Unfortunately the fullscreen quality is only reasonable in small layouts....

    What do you mean by this ?

    If you load up Demonoire, set full screen quality to high and set pixel rouding off (unchecked) you will get perfectly smooth scrolling in all directions. You may get the odd jank as the c3 editor , or other browser operations fight with the preview in the browser but that will be minimal when deployed as app/ nwjs / website.

    f you are talking about your own game then you need to post a c3p of some sort showing your events and set up. otherwise it is hard to help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • using dt should work unless FPS is lower than 30 then you will get movement slowdown. post a c3p

  • Basically the camera is jumping from pixel to pixel at the low window resolution (312 x 240)

    The quick and simple solution is to set both

    Fullscreen Quality to High

    Pixel rounding off

    You need to set the fullscreen quality to high (to to render at max resolution ) to see the benefit of setting pixel rounding off.

    If you just set pixel rounding off without setting fullscreen high there will be no difference as the game is still rendered at the low resolution

    you can also add a lerp to ease the camera to and from the position but not really nessesary at that speed.

    This works with this game because the game assets are of a constant pixelart scale. If there were assets of higher resolution being passed off as pixel art (using fullscreen quality low) this would expose them for the higher resolution sprites that the really were .

  • If you are moving 5 pixels per frame

    then your player speed will be dependant on frame rate.

    Diferent devices may give you diferent performance

    which will affect framerate

    and thus give you different movement speeds...

    ...unless you make your movement framerate independant...

    https://www.scirra.com/tutorials/67/delta-time-and-framerate-independence

  • For C2 you can adapt this raycasting axample for really fast bullets or lasers.

    it does pretty much the same thing as bullet stepping

    It works perfectly and no major performance impact

    https://www.scirra.com/tutorials/902/li ... raycasting

  • Sweet.

  • TheRealDannyyy

    Cool. Sounds promising.

    Although I saw in another thread that C3 runtime will have a new addon SDK and format.

    Anyway I am in no rush but it certainly would be pretty awesome to have in the future.

    Ashley

    No problem , fully understand. It will be great to see the addon repositry grow.

    I wish I had better skills in this area so that I could support. (i think I will try to start learning some JS)

    Just FYI the " how hard can it be ????" comment was not directed at you ... it was supposed to be sarcasm directed at myself... just in case it came off wrong.....

  • There's an addon for mouse lock, maybe ask them to port it to C3.

    Have done. I know your busy with C3 Runtime etc. But if there is any possibility of having a official plug in the future that would be very welcome. I may raise a c3 suggestion fwiw.

    Maybe it is time for me to learn some real programming and look into the addon sdk.

    how hard can it be ????

    (I can already hear all the real programmers chuckling in the background...)