greenleafvt's Forum Posts

  • So squishing the x value of a sprite makes it fit much better in to an isometric type game. Things like signs are fine to photoshop skew at a 45 degree angle so they look a little 3D. However I ran into a problem with things that move. Imagine a windmill. Think about blade turns and would look weird if it was 2d - would be nice to force the squish to the just the x value. How can I make the sprite Rotate but then dynamically squish x value to make it fit in an isometric kind of environment?

  • Yep, I forgot that global layer for GUI doesn't lock layer scale... seems as it does with parallax but anyways set both to 0,0 and working great now thanks. Also thank for the delta time point don't notice a difference but maybe down the line it will save resources.

  • Hi All,

    Made a lerp to layout size that works great zooms to character on start of layout (except not on start of layout) just every tick and that works fine and then the player controls zoom. Except it effects the GUI. So changed it to layer scale (4 layers needed) and cant get it to work. Is their a way to exclude the GUI layers or whats wrong with the layer scale in a lerp. Seems to work some times but is instant want it to slowly zoom in on the "camera target" Thought the .01 would have the same effect as it does in the layout version.

    Lets say:

    Every tick lerp(layer(0),1.5,.01)

    lerp(layer(1),1.5,.01)

    lerp(layer(2),1.5,.01)

    lerp(layer(3),1.5,.01)

    Any ideas?

  • Yeah! Ok Thanks the distance(PLAYER.X, PLAYER.Y, Squares.X, Squares.Y) I'll need to study a little but it works great, Setting dist as a var is probably what I missed but its probably the best practice I would guess.

    Thanks for your help!

  • I'm guessing I need to use lerp between the character position an the color sprite but confused on how to translate that to the RGB value. The complexity comes from doing it on both the x and y axis. Any ideas are greatly appreciated.

  • Hi Dop2000 again,

    So I made a crude example of what I'm trying to figure out:

    drive.google.com/file/d/15CAMQy3kAiRhmlkLfnC81FZsXv1qYbTr/view

    As you move the black box around it sets the color from you example to green / red / blue however I'm puzzled how to ad the inverse (when your not on a color square... Alway only works only for the last in an inverse or else statement.

    Thanks for your help but what I was asking was the possibility of somehow fading between these colors. So if the black "player" in my capx example moves closer to the red square the "overlay" would slowly increase to 100% when it was finally overlapped then fade to 0 as you moved away. Same for the other squares. The closer you get to blue the more the "B" var would go up.

    Almost like you would have zones the the color overlay would slowly become active based on your distance from a sprite point.

    I know overlap is not the way to go - just for example.

    Cheers!

  • So this one is a little hard to describe. Imagine I want to have a green screen overlay for a swamp type area and then overlay a red screen effect for an area that has fire or magma type setting what approach would you you do to have a smooth transition between the effects? The idea is setting the mood for a section of the game. Think of the screen slowly getting more yellow as you get to a magma source etc.. What would be the best method for CPU performance.

    Thinking a box that was the whole screen area that just changed RGB based on player distance to a sprite but may be going in the wrong direction.

    Massive PNG overlays for an area is probably a bad waste of disk space and CPU. Any ideas? Thanks.

  • Is it possible to set the animation frames of a sprite to everything in a folder? For instance if their was a user uploads folder that then became the frames of an animation?

    Im guessing you would get the images loaded from url but is their a way to load them into the animation frames in construct?

  • Sorry to bump on an old tread but I can't seem to get distance to accept anything.

    So if I have a var and want to set its value to the distance between to sprites I was thinking:

    Every Tick - Set Var = Distance(sprite1.x,sprite2.x) But it doesn't except that syntax or 4 values (sprite1.x,sprite1.y,sprite2.x,sprite2.y)

    whats the correct way to write this out? Or has it changed as this thread is very old?

  • It would really be nice to be able to sort files based on date / size / name in the load file, I save a few backups a day and sometimes it gets confusing trying to go back to a save point when I save to the wrong google drive folder or what not. I'll try to remember to post in requests :)

  • Try Construct 3

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

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

    Yep, thanks should have caught that! Sigh.

  • Wanted to use a veritable for controlling a particle emitter but was having some problems getting it to work. The idea is to have various weather patterns turn on and off based on the WEATHER veritable. Seems simple but why is it not working as expected?

    veritable

    WEATHER = 1

    WEATHER = 1 Action turn on spray particles

    WEATHER ≠ 1 turn off spray particles

    As soon as I enable the ≠ one it doesn't work at all even when the veritable is set to 1.

    Anyone have an idea whats going on here?

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

  • I'm sure this has been posted before but does anyone know a trick to get the click on mini-map to get the camera to scroll to a corresponding spot on the main map? Bonus question lock the mini-map selected box to the mini-map box. (Not show beyond the mini-map / canvas)

    Main problem is I'm using an on drag to move the camera - but what if I want the mini-map to instant the camera to that location...

    Any hints would be greatly appreciated.

    drive.google.com/file/d/12okW1cR3rrM5bpDhM_CnQiAJcpNtPp7o/view

    Tagged:

  • I guess everyone would need to know how the sprite is duplicated? On a click - on touched - etc?

    VS using the UID You could make a instance var and and add to that. Sorry many ways to do this and I'm not an expert. Try explaining it in more detail.

    Good luck

  • Here is a simple way of doing it - sure their is a better way:

    drive.google.com/file/d/1paScc-ymfPILxSMDkR_rX7-x75vO0Ehc/view

    And yes plinkie is right about the parallax