Drawing Object type lines

0 favourites
  • 6 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • mediafire.com

    here is a cap.x showing what ive got done so far.

    when the left mouse is held down, the line appears and changes angle and size when following the mouse. i want to be able to determine the position of the base object when i 1st hold down the mouse. then while held down i want the line object to stratch out so the base is where i 1st pressed, and the end of the line is where i let go.

    any help would be great

    thankyou

  • anyone? <img src="smileys/smiley6.gif" border="0" align="middle" />

  • omg dude i could kiss you =]. thankyou so much!

    the basic concept is to be able to draw out conveyor belts, so if i chnage the proporties of the line object to apply a force to any object it touches, that should work.

    my only concern now is the stretching, i want to replace the black line with a texture of a conveyor belt, say with arrows showing which way its going. now i realise this texture will stretch as i make my lines, any way i can avoid this?

    thankyou again for your help. i can nearly start level design <img src="smileys/smiley1.gif" border="0" align="middle" />

  • With a search with the keyword conveyor belt you can find other topics which already treated the subject.

    You could make your belt out of several elements.

    If you're more looking to a kind of "platform", use the current bar object as guide on which you will spawn an adequate number of conveyor sprites, scaled accordingly so it looks good (like keeping a good ration, not stretching too long, keeping the object's size to power of 2, etc...)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ok cool, ill give this a shot later today. thankyou Kyatric, youve helped out a lot! <img src="smileys/smiley36.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)