[Effect] mode7

0 favourites
From the Asset Store
Create unlimited effects lets you create stunning visual effects with an instant preview.
  • Here's an example file of what I'm trying to do with mode7. I'm not sure if its at all possible so i thought i'd ask Aurel and R0J0hound

    Is there a way to get one object on another layer to follow another object on a layer with mode 7 applied to it?

    see demo below: I'm trying to get the blue square to follow the position of the green square below it

    Thanks for the help

    Demo:Capx:

    I had the same exact problem. Improvised it like this:

    bit(DOT)ly/1vUhMHU

    Its not perfect but maybe fits your need. Adjusting Y-speed of Sprite5 will do the trick

  • After playing around for some time now i found no precise setup.

    Can anyone help?

  • To position objects the math in the shader is reversed, and it comes out kind of complicated.

    Change the m7x and m7y variables of the obj sprites to change their locations.

    Interesting topic!

    I had made 2 behaviors (ground behavior, perspective behavior) from this capx to encapsulate the logic. Here is a sample capx.

  • Thanks works great!

  • Thanks hound

  • rexrainbow

    Nice behaviors!

    What is the most convenient way to get the logic postion of the camera?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • R0J0hound I am currently trying to get the object(s) to follow the player until they reach the player or is destroyed from another set of events I've yet to program in. For some reason I am unable to perfect the following AI movement, the object sometimes moves towards the player and some times it doesn't, going off to some random direction, would you or some one else be able to help me? \/

    https://drive.google.com/open?id=0B5o88nTp3aB9NkVnT1hsRF9tQ1U

    Link to my capx. file /\ Note: I'm using the "Mode7_Tiled" fx since it has a cleaner long distance rendering

  • neverk

    My helper behaviors does not support it, sorry. It only maps rojo's capx into behaviors.

  • Dunno if you caught this:

  • OMG thank you for sharing! great job!!!!

  • Anybody knows why I cant use a single image instead of the tiled image property?

    I get this strange trail on the sides of the sprite with mode7.

    Tiled:

    Single image:

  • I think I found the fix.

    I left a transparent pixel of border around the ground sprite. It's working now!

  • I started playing around with the mode 7 effect and really like it. I'm using R0j0hound's capx. I got two questions about it.

    Is there a way to get the closest sprite to appear infront of the sprites behind it?

    Is there a way make sprites that the player can't go through like walls? using solid behavior didn't work

  • Bodhran

    1.

    Probably sorting by y would be easiest

    for each sprite ordered by sprite.y ascending

    --- sprite: move to front

    2.

    You'll have to this before mapping the position to the mode7 position.

  • R0J0hound

    1.

    Thanks for the help. It works great.

    2.

    I don't understand exactly. I enable solid behvior with code first then create the sprite with mode7 position? It didn't work for me.

    How do I stop the sprites from looking at the player to create walls? I have tried all the mode7 effects and couldn't find what does it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)