This site requires JavaScript, please enable it in your browser!
Greenfoot back
kenNXstar
kenNXstar wrote ...

2023/12/4

Parallax Scrolling

kenNXstar kenNXstar

2023/12/4

#
I am looking for videos on using 'setPaintOrder' trying to make a parallax scrolling game. This is my first time making a game on greenfoot.
danpost danpost

2023/12/5

#
kenNXstar wrote...
I am looking for videos on using 'setPaintOrder' trying to make a parallax scrolling game. This is my first time making a game on greenfoot.
I presume it is a side scroller. Probably best is to have objects higher on the screen move slower than those below. Adding them into the world from top down should take care of the paint ordering. It is not a full-proof method, but I believe that how greenfoot is coded currently, it will work.
kenNXstar kenNXstar

2023/12/6

#
currently testing that method out at the moment ill keep you updated... I was going to test setPaintOrder (class) method. I'll keep you posted thanks for the feed back.
kenNXstar kenNXstar

2023/12/10

#
@danpost I took the setPaintOrder method and ended up putting everything in order. The speed on everything is super choppy. This trying to figure out how that out.
You need to login to post a reply.