SuehtamSatierf's Recent Forum Activity

  • Yes, I am trying to make an actual billboard for the game. The code I got seems to go in the right direction, but it falls flat on several occasions. In some angles, the plane doesn't face the camera at all. It works a bit better from a distance, but it looks stretched. Apparently because of the Z scale.

    Here's a video showing how it currently looks and how I want it to look:

    Subscribe to Construct videos now
  • Yep! All it needed was a "Trigger Once While True". Now it's working as intended.

    I can't believe it was such a simple fix XD. Thanks a lot, !

  • So you're saying just pinning a text object to the tank's object would work? Even though it's a 3D environment?

    I tried to do that and it didn't work. It wouldn't even appear on the scene as it would be within the window's boundaries. Maybe I am doing it wrong (help XD)

    I was trying to do something with a plugin I bought to support 3D models in Construct 3. I created a plane in Blender as a test and tried to mess around a bit to see if I could make it work.

    It sort of works, but not really... I tried to make the plane rotate in the Z and X axes according to the position of the camera in relation to the player, but it's not working 100%, and the Z scaling is stretching the object too much. I don't know if that's me using the plugin wrong or if it's a bug that still hasn't been fixed.

    I just wonder if there's an easier, more effective way.

  • In this game, when a player dies, a couple of behaviours are disabled, one variable has its value changed and some 3D shapes have an FX enabled. Then, after waiting a few seconds, the player respawns by being repositioned to its spawn point and resets most of what has been done when they died (re-enables behaviours and disables 3D shapes' FX).

    I am running into an issue where after those few seconds pass and the player respawns, they're still unable to move, simply shaking when attempting to do so.

    The expected outcome would be:

    1. Player dies. The 3D shapes become red and the dead player stays there for ~3 seconds before respawning.

    2. After those 3 seconds, the player is immediately brought back to its spawn point, ready to get back in action.

    Current Outcome:

    1. Player dies. The 3D shapes become red and the dead player stays there for ~3 seconds before respawning.

    2. After those 3 seconds, the player is brought back to its spawn point and is unable to move for those same 3 seconds, simply shaking when commanding them to move.

    Here are some things I observed:

    - The shaking problem doesn't occur if I set the player's position to its spawn point before having the system wait for 3 seconds, making me believe that the issue could be related to that action.

    - The glitch is not related to the behaviours that are being enabled/disabled. I have tested the game with those actions disabled and nothing has changed.

    Does anybody have any clue on what that could be? I shared a link to my project below, but I am using an external plugin to support 3D models that I imagine many must not have.

    drive.google.com/file/d/1oSJraizi2RFckT0as2aQNbVbYWVEvOTI/view

  • I am working on a multiplayer game and I wanted to do something similar to the picture below, where a 2D text is always following the player's 3D object while still being a 2D object (or a 3D object that's always facing the camera).

    Is it possible in any way in Construct 3?

  • Coming back here as I sort of figured out a way, but it has some flaws that I need help with.

    I was able to achieve most of what I wanted by taking the approach from this old post:

    construct.net/en/forum/construct-3/how-do-i-8/gamepads-two-separated-players-157869

    However, I noticed two issues:

    1. When either player 1 or player 2 dashes, both of them dash together, even though only one of them pressed the dash button

    2. The players cannot shoot at the same time. If player 2 is shooting, when player 1 holds down the shoot button (Right Trigger), player 2 stops shooting.

    I understand that must be related to the loopindex I am using. How can I avoid this from happening?

    Here's the link for the project, as I know nobody knows what I am talking about without it:

    drive.google.com/file/d/1EE8IMpcqI7_0m8bohg52_727oFNa_zjh/view

    EDIT: Run the game in debug mode and under "players", instance number 1 is going to have an instance variable called "Gamepad". Change the value of that variable to 1 in order to have player 2 working. There's a bug that sets it to 0 and I haven't figured it out yet.

    EDIT 2: Found another glitch resulted from this approach. This game has an overheat system, where shooting for too long with the Left Trigger will increase the heat level, until it reaches it's maximum, when the player cannot shoot anymore. When overheated, the heat meter gradually goes down, and the player can shoot again once it completely depletes.

    Although the gradual reduction of heat is working for Player 1, it's not for Player 2. The heat never reduces, it only increases if I hold down the Left Trigger and it stays there when I release it.

  • I am currently working on a local multiplayer project that can have up to 4 players at the same time with gamepads.

    I really don't want to have to go through the repetitive task of programming all the controls for each individual player, and I was wondering if there's any way of doing it only once and make it work for all players.

    Currently, I have all player objects be part of a family, and its instances are always in order (Family.IID(0) = Player 1 | Family.IID(1) = Player 2 | Family.IID(2) = Player 3 | Family.IID(3) = Player 4).

    Is there any way I could perhaps relate these instances to gamepad numbers in a way I only have to program the controls once and all the players can control their respective characters independently?

    Tagged:

  • Hey guys! I tried both approaches once again, addressing that issue with the raycast not working with multiple players in the WackyToaster's approach.

    In the end, turns out R0J0hound approach ended up working better. With Wacky's approach, while it mostly worked fine, the tall building in the screenshot was not getting transparent when one of the players were behind it unless they were very close to the building. That's probably related to the fact this approach wasn't taking into account the ZHeight of stuff in the environment.

    That being said, the issue has apparently been resolved! Thank you guys for all your assistance, you were extremely helpful!

    Cheers!

  • Posting again just to address an issue I was previously having regarding the camera movement.

    "In your project, the camera is static, whereas I have the camera move accordingly to the following:"

    "I don't know if all these lerps might be affecting it..."

    It's actually all working fine. What was giving bad results was an invisible wall with the solid behaviour I had on the open side of the arena. After I removed this invisible wall, everything started working better.

    The issues of my previous post still persist, of course. Just wanted to get this here in case somebody ever stumbles across this thread in the future when having a similar issue.

  • Hey guys! I took some time today to try these approaches out and both of them didn't seem to work well, although for one it could be me doing something wrong.

    Wacky's approach seems to work well enough when there's only one player on the screen. The moment there are two or more, things start falling apart.

    When attempting Rojo's approach, absolutely nothing happened. However, I am very suspicious that it's because I laid the code down wrong. Here's a screenshot of how I did it.

    There's also a link down here for the test project in the screenshot which I created to test these things out. It has both approaches coded in.

    drive.google.com/file/d/1SxCQj8_tXlQdfzSwp5sw-2MHwK3xmrFr/view

  • Yeah, I'll grab some time this week to play around with it and see if I can make it work. I'll get back here once I get it sorted out or if I am unable to.

    Thanks for all the help though!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Alright! So, I tried your code in my project and it's not working, and I believe it might be related to the way I am handling the camera.

    In your project, the camera is static, whereas I have the camera move accordingly to the following:

    I don't know if all these lerps might be affecting it. What do you think? I might have to sacrifice the smooth-ish camera and use something a bit more static if this is causing trouble.

    Here's the link for the new version:

    drive.google.com/file/d/10OmeVZRQaRrGxZwgVrwMbD7Kx-kNrNpS/view

SuehtamSatierf's avatar

SuehtamSatierf

Member since 17 Dec, 2022

None one is following SuehtamSatierf yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies