Sir LoLz's Forum Posts

    Some of my effects have broken. They show up in the installed plugins window but I cant add them to my project. listed is Glitch, But other effects do not show either.

    I don't mean to cause trouble. But considering I payed for both the editor and effects I don't like they are conflicting with each other. These may get updated in the next stable release sure. But not all addons are so lucky.

  • The whole point of an orthographic view is the distance from the camera doesn't affect the size. You could try scaling the layer/layout instead.

    That does not fix my issue it seems. Also the orthographic view does not fit the preview window despite being on letterbox scale. I get the point is that distance does not affect the size and that is the desired result. so that objects maybe behind a wall on the corner won't be obscured by it's relative perspective. But not being able to choose the orthographic scale limits it's usefulness.

    Blender has a orthographic scale option in it's camera settings. could something like that be added to the 3d camera object?

  • Done.

  • I am using the raycast behavior on a canvas to create custom shapes based on collisions. But when I use the Fill Polygon command (blue) it renders in a glitchy fashion. yet the Draw Polygon Outline (red) works as intended.

    Subscribe to Construct videos now

    Link to the project folder

    https://drive.google.com/file/d/17F7y-pLOX73_4ne47KxPWc695odBgkxl/view?usp=sharing

  • I want the 3d camera to be able to zoom in and out. but it's always stuck at the same distance. I have tried changing the fov and the canvas size. but neither produce the effect.

  • Sir LoLz Try different versions from recent comments in this post.

    For example:

    https://www.construct.net/en/forum/construct-2/addons-29/behavior-easystar-js-96215/page-12#forumPost1091235

    thanks. that fixed it

  • I have a canvas object and I want to save the image to a sprite. but it never loads on the "on snapshot" trigger

  • Heyo. I tried importing the C3 addon. but when I try to use it construct 3 can't start the preview. am I missing something?

  • That is a good system. I will consider that. though I may want some physics such as being pushed.

    I found a better method than what I was doing before though. I poll each pixel around the player every time they move a certain amount. and create dynamic solids as needed.

    On the left, the player is climbing a ramp by an edge. The pixels on the left are green because while they may be higher than the player. They are below a climb threshold I set. (player.z + climb) So the player can freely move there.

    On the right, though the player is on ground level. The elevation above is taller than the climbing threshold.

    these are calculated at the player's current height. So any jump/fall the player is doing will be factored into this dynamic solid creation.

    I am very pleased with this because it is dynamic and does not need me to do any walls beforehand. It goes off the already existing height map. I will optimize it later but it's a good proof of concept.

  • i tried saving the last x and y of the player hoping I could jump back to that in order to allow a new "On pre collide" to happen. but it seems to do nothing

  • Sir LoLz

    Did you find a way to calculate 3D physics? Or you just made the 3D ramps at the (0, 90, 180, 270, 360) degrees?

    What I did is add chipmunk physics because it lets me run calculations after a hit is made but before a result is applied. so over my height map I place wall objects where elevation is severe. I then calculate the player's Z VS the Z of where they are going. if the players Z is higher then it means they would be falling off. but if they are lower then they hit a wall. I need to iterate more on this function as it does not work around corners. but it's a great proof of concept so far.

    I also added a boolean to lock the player to the ground. used to keep the player touching the ground if the z change is so small you don't want the player to "float" to it. so that way you don't float down inclines"

    On that note, tho R0J0hound something is up with the physics. a player may hit a wall and it stops correctly. I use "on pre-step" to see if they should hit the wall or fall off the elevation the wall separates. it works fine but the trigger is not reset until the player steps back. Ideally, I would want the player to be able to hit a wall and be stopped. but to then be able to jump and then clear the elevation difference. any advice?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • figured it out. I was using the "set angle" command instead of the "Set Euler" still not sure why that affected it 100% but no doubt it's related to Gimbal Lock.

    things seem to be lining up nicely now. still some work to do before everything translates correctly from 2d to 3d. but I'm happy

  • Ok got a new issue.

    for some reason when the camera is angled between 90 and 270 it flips upside down. I made sure to force the player sprites rotation between 0 and 360, and not -180 and 180.

  • I was thinking of using a height map myself so I will go with that. it's easy to do in blender. my test level only goes up to about 140 so I should be good as long as I lerp between where you are and where you are going.

    I made a shader for the object that colors it based on the height of the vertex. and with the camera set to Orthographic, I get a good height map

  • ah I changed some export options and now it has no issues.

    I don't suppose there is a way to cast a ray or otherwise check the height of a point on an object?