what should be a simple task...

0 favourites
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • db.tt/fOUjj1B9

    Here ya go. Very simple change: when you left click, it checks the value of bar.Count, which is how many instances of the bar object there are. If bar.Count = 0, that means there aren't any instances -- so create one, and start stretching that one. If bar.Count > 0, that means there IS one -- so instead of creating one, stretch that one instead.

    Hopefully this is what you were looking for!

  • yes! thats it, turns out i was nevr too far away after all. i tried a similar setup this morning lol <img src="smileys/smiley1.gif" border="0" align="middle" /> one issue however is i would prefer it if i could create the second one and the 1st stays until i release the mouse.

    so it doesnt dissapear as soon as a press the mouse down

    if that makes sense lol

    thankyou so much!

  • Well in that case, a solution like newt's will work better. I'll try to set it up. Back in a flash!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • db.tt/fOUjj1B9

    Sounds like this is what you want. Another small change: on Left mouse released, it checks the Stretching boolean of both bars to see if it's true or false. If it's false, meaning it's the old bar, it gets destroyed. If it's true, meaning it's the new bar, it gets the usual treatment.

  • that is perfect! its exactly the way i wanted it. i can now get on and do some level design, =]

    thankyou for your help, ive been taught a lot these last few days on this forum because of people like yourself.

    <img src="smileys/smiley4.gif" border="0" align="middle" />

    thanks again

    Luke

  • You're very welcome. Don't hesitate to come back if you have any more questions! <img src="smileys/smiley20.gif" border="0" align="middle" />

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