top of page
Search

2D IK, 2D Animation & Runtime Spriteshape generator.

  • Writer: Justin Markwell
    Justin Markwell
  • Dec 17, 2018
  • 1 min read

Created this sample of generating spriteshapes at runtime. Connect the generators slopes to a slider or you can draw the terrain on with the mouse or touch.

The generator will follow a gameobject position and insert new points into the original Spriteshape allowing for a endless terrain. I added a slider to show increasing or decreasing the slopes at runtime. The terrain will also update the changes in the collider as it creates them.


Here is some of the code behind for adjusting the shape at runtime.

ree

Here is a quick video showing generating the spriteshapes by drawing on the screen using mouse or touch.

The whole process only took several hours but was great to check out the 2D Tools & Spriteshapes.



 
 
 

Comments


© 2021 by Justin Markwell.
 

  • uc
  • LinkedIn Social Icon
  • YouTube
  • gdstack
bottom of page