WackyToaster's Forum Posts

  • You are looking for deltatime.

    construct.net/en/tutorials/delta-time-framerate-2

  • Probably you add a layer in 2D mode with parallax 0,0.

  • Did you change anything major? Any added plugins? Did you change the version of Construct you were working with (beta releases)? How are you testing this, just remote preview or apk? If apk, you might have to get android studio up and see if you can find any errors in logcat.

  • I have those too but my sound isn't even looping. Are you using directional audio too by any chance? Because I noticed the issue doesn't appear with normal audio. It seems that specifically if the listener object is moving, the audio cracks like crazy. And I'd assume the player is moving a bunch. I tried different audiofiles too (mono/stereo wav, mp3 at different bitrates)

    I've checked my files btw. and they seem clean at the beginning & end. I even added a fadein+fadeout to make sure but this doesn't fix the issue either.

    Here's a file demonstrating this. Is this happening for other people too? It could also be some kind of driver issue. But if it's happening for a bunch of people, it's one for the issue tracker.

    wackytoaster.at/parachute/cracklingaudio.c3p

  • It's hard to just guess from screenshots of code as to what is happening. I agree that LOS is probably your best bet for this.

    Since there are multiple players, maybe you'll also need a "for each players" there. Also there is no event that sets the walls to full opacity again.

    I'd do something like this, but I haven't fully tested this.

    This works only in a 2D space though. If you also need to check if the object is obscured by the wall depending on height... well you gotta unzip happy triangle math stuff there. Something along those lines off the top of my head.

    If "wall height" < ("distance to player"/"distance to wall")*"camera height" -> player is visible. Else set wall opacity.

  • Try using a hierarchy for the sprite. You can move the sprite seperate from the tile movement object below while keeping it in sync at relative position.

    construct.net/en/make-games/manuals/construct-3/interface/layout-view

  • I've encountered this more than once...

    Here's Ashleys (7 year old) answer to this

    construct.net/en/forum/construct-2/general-discussion-17/visual-syncopation-position-112785

    The only "solution" I found is to run the game at full resolution (1920x1080) and use pre-upscaled pixelart without pixelrounding.

    There is also a proposed solution in the thread that I have never seen before. The ancients say it's working but their links are down.

    EDIT: Btw. the issue with the running into a wall... dunno what exactly is happening there but I'd guess the speed value gets too high for reasons.

  • Today is the day you shall learn about finite state machines.

    Google it for an in-depth explanation.

    But the gist is, give your character an instance variable "state", that then is set to the characters current state (cling, idle, walking, falling,...)

    Character clings to wall -> state = "cling"

    Now you can compare when pressing the button: Is character state "cling", do X, else do Y

  • You can set up an autotiling brush, and then use "erase tile with brush" instead of just deleting the tile normally. I think the example project existed way before the autotiling feature so it's likely not used in there.

  • You do not have permission to view this post

  • Can you post your code? That sounds kinda unintendet/buggy. Have you tried setting a template?

  • Well, I did dig into the code and I solved it :^)

    This is a replication of the behavior code into your project. It perfectly simulates along with the actual behavior. In the screenshot mode 2 = the correct behavior. Mode 3 = how construct handles it.

    The solution is as simple as switching it around so it's in the correct order. Though I do not know if this has any unwanted sideeffects downstream in terms of bugfixes and workarounds that have been implemented previously.

  • Ohh that's it! The regex indeed does not do any picking whatsoever. That makes sense then. I knew something was weird. Case closed :)

  • Project to test yourself here

    wackytoaster.at/parachute/perftest.c3p

    I stumbled on this by accident. I have two operations. Compare instance variable and regex (on the same instance variable). To my surprise, regex consistently performs better somehow.

    With compare instance variable it settles around 95000 repeats, but with regex it settles at around 150000 repeats.

    I expected regex to perform worse if anything, not straight up 1.5 times faster! Why is that? Is my example faulty?

    Tagged:

  • Usually you have some kind of detection method using regex and a blacklist of words. This is quite a can of worms though if you do it yourself. If you have a server, you probably want to do this server-side, otherwise it could be circumvented. And it's not trivial to properly filter things out. Say you wanna filter the word "asshole". But what about "assh0le", "assho1e", "a$$hole". And if you filter "ass", what about "assemble" or "bass". Even big companies struggle with this actually, Minecraft being in most recent memory, e.g. the "diamond hoe". But big companies usually have some kind of reporting system with the option to report someone for "inappropriate username" like Overwatch for example. Because it's almost impossible to not have something slip though the cracks.

    Hope that helps.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads