? How do you split a group of sprites if they aren't connected? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
[Help Wanted] SmileBASIC Documentation Project

How do you split a group of sprites if they aren't connected?

  • #1 ✎ 302 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've been trying to figure out how Space Engineers and Cosmoteer does it but everything I try doesn't work and google isn't a help whatsoever. How do you split an array of sprites based on where they are in the structure's grid/how they're touching and put the two or more groups into separate arrays? Example: an array of coordinates and sprite texture values makes up a ship (like in my spacerocks thing). If a line of sprites are removed so the structure is cut "in half" the two pieces get their own array element. Posted Edited by spaceturtles
  • #2 ✎ 931 Y_ack liiike a quadtree? Posted
  • #3 ✎ 302 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
    liiike a quadtree?
    If it can be used to split a structure like I'm trying to do yes. If so how can I use it?
    Posted