dop2000's Forum Posts

  • In physics game you can create an invisible solid circle, pin it to the object and it will push other objects away.

    Without physics you can do something like this:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You tell me!

    What is your next problem?

  • Make a sprite with X icon. Create/spawn this sprite when you need it, then destroy.

    You can add a fade behavior, it will destroy the sprite for you after fading out.

    Alternatively you can keep this sprite invisible and toggle its visibility.

    Or keep it off the screen and move it to the screen when you need to display it.

  • Check collision polygons and origin image points of your sprite. Ideally the collision polygon and origin image point should be the same for all frames/animations.

    Incorrectly positioned image point on a single frame could trigger unexpected falling/jumping/collision events.

  • The only way to do this is to add an instance variable "type" to the family. Set type="A" for sprites A, type="B" for sprites B etc.

    Then you will be able to pick family members by type and loop through them.

  • What do you mean "no longer working"?

    Tokencount works and you can use it to validate email address format, but you need to create several conditions:

    tokencount(emailText, "@")=1

    tokencount(emailText, ".")>0

    tokencount(emailText, ",")=0

    tokencount(emailText, " ")=0

    etc.

    Those are some basic checks, if you need a more strict validation, you can create a string of all characters that are not allowed in email and do something like this:

    charList="`:;'<>,/?\"   <-- this is just an example, not the actual list of restricted characters
    For x=0 to len(charList)-1
       tokencount(emailText, mid(charList,loopindex,1))=0
    [/code:1sinvf5u]
  • First line determines zoom level - from 1.4 for stationary (zoomed in), down to 1 when player's speed is equal to layoutWidth (zoom 100%).

    If the player is moving even faster, zoom can become <1. I didn't want that, so I added zoom=max(zoom,1)

    I don't like this zoom effect either, you should definitely play with the values or camera speed etc.

  • Yeah, you need to be careful with the void

    Frankly, this is the first time I'm playing with smooth zooming/scrolling. I should add something like this to my game.

  • There was a similar post recently:

  • You mean something like this?

    Screen zooms in (up to 1.4) when the player is stationary and zoom out when moving (down to 1).

  • I live on another side of the globe, it's not very late here yet

    I changed too many things, but I think it works much better now. It doesn't allow to stay on the wall for too long and the height of wall jumps decreases with every consecutive jump.

    You'll see in 4 hours

  • I don't see any ghosting either.

    Maybe you have motion blur enabled somewhere in your video card settings?

  • [quote:2us7wkbf]I wanted to implement a limit to how long people can walljump in a way that feels natural but you can stay on the wall infinitely just holding against it and tapping away

    Sorry, your wording is a bit unclear - do you want to allow players to stay on the wall infinitely? Or is it a bug and you want to get rid of it?

    I made a few changes, have a look:

    https://www.dropbox.com/s/c7wfnichstid7 ... .capx?dl=0

    It still may need some tweaking, also you can move repeating code to functions.

  • Ok, for starters:

    1) You have two PlaceInInventory functions. Delete the duplicate one in Logic group.

    2) You need to add InvCell sprites to your layout. Don't forget to set correct value for Order instance variable for each cell.

    3) In lines 42 and 44 change Item.animationFrame to Collectibles.animationFrame