Can GS scroll textures?

I made this 2.5D racing demo in Unity and was thinking it's be pretty cool to "port" it to GS. Since GS is a 2D engine, it's be better suited to it anyway.

The only thing that would be stopping me is if GS can't scroll textures, as that's how I get the movement of the road. Can GS do this?

Comments

  • B1984B1984 Member, PRO Posts: 91

    You can make an actor move by adding a rule or timer that tells the texture to move in a direction. is that what you mean?

    I have no idea why there isn't a pan feature for textures such as "pan vertical at speed 9" and the texture would just move and wrap itself.

    Nice looking game, btw.

  • AfterBurnettAfterBurnett Member Posts: 3,474
    edited August 2014

    Moving actors and textures are two different things. I'm talking about scrolling the texture across the actor by increasing UV offset over time, not simply moving the actor itself, that wouldn't work at all.

    Basically for my road I have 100 quads in an array. I shift them left and right, taking into account the position of the quad above and below each one, to give the appearance of corners.

    My issue is for the forward movement of the road. In Unity I split the road texture across the 100 quads, each having a slightly different offset from the last, and then I simply scroll the texture down, giving the appearance that the road is coming towards you.

    Offsetting/scrolling textures is pretty common practice but I haven't seen anything in GS that suggests it's possible, so it may not be... which would be a shame as I'd quite like to do this.

    Anyone know?

  • AfterBurnettAfterBurnett Member Posts: 3,474
    edited August 2014

    Hmmm, looks like it's not possible. Even animating sprites requires separate images, rather than a sprite sheet and offsetting UVs. Hopefully this changes in future as separate image files for each frame is really not an efficient way to go...

Sign In or Register to comment.