Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:13:00+00:00 2026-05-29T23:13:00+00:00

For a game I am making I want to create 2D vines and vine

  • 0

For a game I am making I want to create 2D vines and vine like structures procedurally. Is there some paper or code snippet that someone can point me to?
Googling results in procedural trees which have straight spiky branches, but I need to create vines which are curvy. Think Jack and the beanstalk type of growth.
http://youtu.be/2wq541W6LyE?t=2m11s

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:13:01+00:00Added an answer on May 29, 2026 at 11:13 pm

    Your particular approach is going to depend on how you game handles drawing and collisions.

    An approach popular with flash-based games is to draw the vine to a bitmap: Since you don’t list your programming environemnt, I’ll just explain the steps, not the code.

    Start with a circle,
    1 draw it,
    2 move it,
    3 scale it down.
    4 At a random interval, spawn a “branch” and or a leaf.
    Set the scale and position of the branch to match the parent. Start a 1-5 loop on the branch.
    5 repeat 1 until fully grown (scale is too small to proceed).

    In the move phase it can be handy to use Sin curve to make your vine weave in and out.
    Youcan tweak the settings for how much it curves to get different types of vines.

    Here is a link to a discussion fo teh topic. Some good source to be found in the links.
    http://groups.google.com/group/flashcodersny/browse_thread/thread/9906041e557e620c

    Including source code inf flash:
    http://xfiles.funnygarbage.com/~colinholgate/swf/varicoseg.zip

    And a javascript version that looks more like lightning, but couild be adapted to vines without much change:
    http://www.brainjam.ca/hyperbolic/01_spite_mrdoob.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making a game in java and I want to create a simulation
I'm making a game engine for mobile devices. I want to compile my code,
I'm making a chat responder for a game and i want know if there
I m making a Shooting game, in that I want an array of ImageViews
I am making a racing game and I would like to print some information
I'm developing a game and want to integrate some animations, I've thought about making
I am making a pokemon like game that will utilize SQLite DBs for storage
I want to create a game something like Who wants to be millionaire?, where
I am making a math game in Java and I want to create the
I am making a game and want to talk to all the clients at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.