Dualmask's Forum Posts

  • > My current Work in progress. It's an action platformer built around an original character of mine I'm hoping to turn into a franchise:

    Subscribe to Construct videos now

    >

    Has a lot of potential!

    Thanks for checking it out! It's growing slowly but surely.

  • Thanks folks. I've got a lot of plans to expand this. Been thinking of making new idle poses for some time (something dance-related) and other animations could certainly be smoother, but I'm more concerned about making more enemies and coming up with some better environment graphics. I threw the tiles that are there together as a test but I definitely want to make something that looks more natural.

    This project is still definitely in its early stages but I can say I'm satisfied with the way the character feels at least.

  • Never mind, solved.

    I turned on collisions for the player sprite and added a condition requiring that the sprite, not the collision box, is overlapping the specific wall object in order for the wall clinging variable to return true. Also added an event that stated that if the character was in the wall clinging animation and somehow ended up not overlapping the wall object, the character releases the wall and falls. It works perfectly.

  • I have a character that can cling to walls, and it basically functions well, but I want to have some control over what is considered a 'wall'. Because the character can cling nearly to the tops or bottoms of a solid (including sides of an object with 'Sine' behavior, e.g., a moving platform, which causes crazy sliding up and down) and still be considered 'Having a wall to left/right', I want to create a way to control the behavior. As it stands, there doesn't seem to be any way to put 'If sprite is colliding with [object]' as a condition in an event, so no matter what the wall is "made of", the game still treats the left and right sides of it like a wall.

    Here are some examples of what I find...undesireable:

    I tried changing the size of the hidden collision box when the character was on the wall, but that caused problems when the character left the wall (such as getting stuck in ceilings because the height of the bounding box suddenly doubled).

    I hope I'm making sense. I want to make it so the character can only cling when it's touching a certain object.

  • My current Work in progress. It's an action platformer built around an original character of mine I'm hoping to turn into a franchise:

    Subscribe to Construct videos now
  • A video of the game's current state. The work-in-progress posted in the arcade is officially outdated. I've got my enemies active and cleaned up a lot of the character's moves and animations. I need to develop a title screen with a menu so it can feel more like a game.

    Subscribe to Construct videos now
  • I'm sorry, I can't...part of a much larger project that I've put a ton of work into. But I think I may have found the help I needed from a friend. He helped me figure out that I need to use the enemy box to spawn the enemy sprite (kind of like what you suggested), and code it so it uses an instance variable within the enemy collision box object to pick sprites by their UID. I'm still working on applying the advice he gave me and I'm going to see if it works out.

    But I'll leave this thread up in case you or anyone else has anything they might want to add...a simpler way, etc.

  • I had a bit of a breakthrough: I added an event that said "Every Tick, For Each enemySprite --> set enemySprite position to enemyBox" and that seems to work for multiple instances.

    Now I need to figure out how to get them to not completely match each other's movements...got them walking but when one turns around, they all turn around, resulting in some of them appearing to be moonwalking...

    Also, defeating one enemy destroys every sprite instance...this is frustrating.

  • I see...I think. I'm going to have to experiment, but if I'm reading you correctly, you basically did the inverse of what I attempted. Instead of putting the enemy collision boxes on the layout and pinning the sprite to them, you basically put the enemy sprite on the layout and set the collision box's position to the sprite, having that control all the collisions in the events.

    I'd love to see what your .capx turns up.

  • I want to make enemies that have some complex animations (running, idle, attacking in different ways, etc.), so I want to use the Pin to collision box approach for all of them, but when I applied the Pin behavior as one normally would for an animated sprite, the enemy sprites don't stay 'pinned' to the collision boxes unless there is only one in the layout. I hope I'm being clear. How does one make this happen with multiple enemies?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dualmask

    U can do this by the trigger "at wall left/right" + "On Jump".

    Im using it this way in my game, its flawless.

    Thanks, that helps a bit though it's not quite giving me the results I want. I'm still tweaking but as it stands my character goes into the wall cling animation, but doesn't come out of it when I jump from the wall.

  • This is a great behavior. I'm wondering if there is a way to use the wall clinging state as an animation trigger (the way it can be done with "On Jump", "On Moved", etc.)? I want to make a character cling to and jump off walls but I want the appearance to change when that happens.

  • Thanks, that worked perfectly. Read most of the manual but that was one entry I skipped. Going to study it now.

  • I want to put a score counter on the screen with pre-displayed digits. For example, if the player has 100 points, I want it to show '0000100' or something like that. Is there any way to make a score variable's contents display that way?

  • Seriously impressive visuals here.