? How do I move a sprite with a bg? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

How do I move a sprite with a bg?

  • #1 ✎ 208 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength I want a sprite to move with a bg screen like how a sprite moves with another using splink and with an offset. However I need to move each sprite (in this case entities made of linked sprites) independantly and only render them with sprites when on-screen. I'm trying to achieve this for my space game which is described in my latest poll about it. Currently I have the map and character movement as well as entity creation, deletion, and child creation functions in place including an incomplete render function which renders the entities as I described. Here's a key for the incomplete version: DJ33X3KJ Controls: circle pad to move a to create an entity Entity deletion is untested. Child creation is half functional. Please help me figure out how to offset my entities properly in the render function. Posted Edited by spaceturtles
  • #2 ✎ 122 raimondz First Week Joined in the very first week of SmileBASIC Source Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself The key didn't work. Posted
  • #3 ✎ 208 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength
    The key didn't work.
    It should work now.
    Posted
  • #4 ✎ 53 JINC_DEV Video Games I like to play video games! Hobbies Pokemon Is Awesome! I love Pokemon! Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength What are you using to move the BG, if you are using BGOFS then the sprite/s will automatically move with the BG. Posted
  • #5 ✎ 208 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength
    What are you using to move the BG, if you are using BGOFS then the sprite/s will automatically move with the BG.
    Yes it does do that but I have to offset it from the center. When I try to do that though, it goes far offscreen and moves around.
    Posted