Rendernet
Posted: Thu Mar 27, 2014 1:52 pm
Maybe I'm trying to run before I can walk here, but I tried to use a Rendernet to create a background which would react to player movements. I was thinking that if I saved the player coordinates I could check if any vertex where close to the player and then change it's z value, so the background would "budge" under the player. I didn't get this to work though. I was thinking of putting something along these lines :
Any pointers on how to handle rendernets if I want to accomplish something like this?
in the RenderVertexExpression, but this got very weird.if (PlayerX > this.Vertex.X-1) {
if (PlayerX < this.Vertex.X+1) {
if (PlayerY > this.Vertex.Y-1) {
if (PlayerY < this.Vertex.Y+1) {
this.Vertex.Z=-1;
}
}
}
}
Any pointers on how to handle rendernets if I want to accomplish something like this?