We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Detect frame in spritesheet?

Home Forums Puzzles Detect frame in spritesheet?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #85732
    c4cc
    Customer

    I need puzzles for a spritesheet’s keyframe/value to jump to another when the first is a certain value/keyframe.

    e.g, at keyframe 9 with its combine xyz value, switch to keyframe 3 and its combine xyz value

    How do I get the spritesheet value? It’s missing

    I also tried this tutorial, at 9:2, but I don’t see how to change the input values at groups

    Attachments:

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #85735
    xeon
    Customer

    So many things to try to answer and understand from your post.

    1. The sprite sheet “value” missing is because you were creating a puzzle without the texture having been loaded in the scene. The zip file you provided works and you can select the value and it will not show up red.

    2. ” but I don’t see how to change the input values at groups”. What do you mean by at “groups”?

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #85736
    xeon
    Customer

    Since you seem to want frame control..you will have to turn off Auto Start for the material and then control the material animation in puzzles.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #85737
    c4cc
    Customer

    ” but I don’t see how to change the input values at groups”. What do you mean by at “groups”?


    This “group” with Node, View, etc, at the shader tabs

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #85738
    xeon
    Customer

    try this:
    https://v3d.net/1e44

    Blend file and V3D project file.

    It allows you to control the speed of the animation by setting the timer duration and then you can use the value of the sprite cels to cause an action. I just had it print to console but you can do anything.

    The problem I had with your file were:
    1. the sprite sheet was not a power of two. This made it very difficult for V3D and Blender to produce values that you could use to trigger an event using logic puzzles. Using a power of two sprite sheet gives you values you can use. I remapped your sprite sheet to a 256×256 pixel image in a 4×4 grid.

    2. resized your plane object to 1:1

    3. reset UV to be 1:1

    Then all the math works :-)

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #85740
    c4cc
    Customer

    Since you seem to want frame control..you will have to turn off Auto Start for the material and then control the material animation in puzzles.

    Thanks, this actually worked for the object with that spritesheet

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

    #85741
    c4cc
    Customer

    try this:
    https://v3d.net/1e44

    Blend file and V3D project file.

    It allows you to control the speed of the animation by setting the timer duration and then you can use the value of the sprite cels to cause an action. I just had it print to console but you can do anything.

    The problem I had with your file were:
    1. the sprite sheet was not a power of two. This made it very difficult for V3D and Blender to produce values that you could use to trigger an event using logic puzzles. Using a power of two sprite sheet gives you values you can use. I remapped your sprite sheet to a 256×256 pixel image in a 4×4 grid.

    2. resized your plane object to 1:1

    3. reset UV to be 1:1

    Then all the math works :-)

    Thanks, really appreciate and recognize the effort you went into to set up this. I’ll definitely look this up, I need to learn this more

    FPS trialproduct 20.9.25 https://postimg.cc/gallery/LMM5vkQ/af43346e

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.