Thothanon's Recent Forum Activity

  • I see what you did. I'll have to definitely look at the code in more detail. Looks very similar to what I thought would have to be done.

    The funny thing is that you're basically simulating 4-direction movement and adding diagonal support. Very clever. Lots of conditionals, but it gets the job done.

    It would be great if I could use the platform behavior to set the gravity to the z-direction. Then I could just stepwise all movement, which would probably help once I go about working out how to do the turns.

  • I think I get what you're saying. Basically, do conditional checks for collision before I allow any movement. Something like:

    IF button numpad 2 is pressed -

    IF overlapping at offset x,y with object z, then do nothing

    ELSE move 32 px at 90 degrees

    That's a really good idea. What I was trying to do was separate those checks out. It may be tough to conditionalize all my movement code but I may be able to set up some kind of python switch script that will add all that stuff together in a simpler manner.

    I'll have to figure out exactly what I need to put in for the diagonal checking (if the x,y checks go off the objects borders then there will always be gaps in the diagonals - that's another matter, though, and one I'll take a look at).

    Thanks for the help.

  • I tried the overlapping at offset. There are two issues:

    1) It only takes an x and y, which means any effects won't be applied when you move on a diagonal.

    2) There's no basic 'stop movement' effect - bounce causes random movement off the grid, I tried a few others like 'push out' and moving along the opposite angle but none of them just prevented movement

    I'm guessing the solid effect is something that's hard-coded in and only works with the built-in movement behaviors?

    Also, thanks for the suggestion, but I went through the tutorials already. The platform school didn't help b/c I don't need any of the platform behavior (the game is top-down). It does seem that maybe the solids behavior is something that's just hard-coded - it would be nice if you could tag something as a physics object and then solid and have the basic collision work right off the bat.

    It may just be easier to work on a platform game, at least until I can work out some Python coding.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am trying to put together the basics of a roguelike. I wanted to use the keypad for movement so I set up custom tile movement using that system. What I am trying to do now is create tiles that block movement. The problem I'm having is that the solid system only works with specific movement behaviors.

    I can't use 8-direction movement b/c it doesn't seem to function on a grid. I tried the grid movement behavior but it's only 4 directions. The grid behavior has the stop function I'm looking for, though. If I add that behavior to my player, mark them solid and then mark my impassable tiles solid, the player is stopped immediately.

    For my custom movement, however, that doesn't work. I've tried doing things with collision events, but there doesn't seem to be a basic 'block movement' action. Using bounce causes extra movement when pressing into the blocking tiles. When a player pushes toward a blocking tile I just want them to stop. Would I have to do this by adding conditionals to all my custom movement code?

Thothanon's avatar

Thothanon

Member since 10 Aug, 2009

None one is following Thothanon yet!

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies