Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - blanketstatment

Pages: 1
Ask a Question / Repeating Backgrounds
« on: June 05, 2014, 05:24:20 pm »
Does anyone know how the code used for the built in repeating backgrounds works? I've come up with several solutions to implement the same thing for an actor, but none of them work quite as well. Does anyone have any insight into why that code is so pixel perfect?

This is really great! I love your blog.

Thanks Rob. Can you try re-attaching that picture? Doesn't seem to be a code block.

Code functions can be made into custom blocks that make them much easier to use in design mode.  See attached behavior containing a global custom block for setScrollFactor().

Thank you so much! I really appreciate you responding so quickly to my question. I do have a follow up, though, since I'm pretty worthless with code. Is there a way to set the scroll factor to a Number Game Attribute? Or is that asking too much?

I'd really like to know more about using actors as foregrounds. I'm trying to implement a solution for that in my own project with one foreground (the exact size of the screen) which scrolls left according to a Game Attribute. Basically it's supposed to  draw a copy just to the right of the scene as soon as the x value hits 0 and kill itself when completely off screen. However, I'm having trouble with gaps in between (especially when the speed attribute is increased) or the actors being drawn over each other, breaking the game. If any of your experience relates and you had a second I'd love to know more about how you accomplished the seemingly seamless scrolling for your foregrounds.

Pages: 1