LukeMarkBrady's Forum Posts

  • thanks for the reply, ive had a good read but im still confused by this. lol. i try to set it so it deletes instance 1 if 2 are on screen but that just deletes all the conveyors i have instantly <img src="smileys/smiley5.gif" border="0" align="middle" />

  • ok youve got me, im trying to underetsnad what your saying but just dont get it.. i cant seem to give the 1st conveyor a unuiqe id of say 1,

    then when i make 2... delete 1...make 2 into 1

    i just cant seem to make it functional in the events

  • worked like a charm =]. thankyou. as you said i used the angle to determine which way it should face and works with no trouble.

    one last thing i had a bit of trouble with,

    when i create one belt object, how do i set it so the 1st bar deletes when i create a second, so only 1 is on screen at a time

  • nope, that didnt work lol. take look and see what i mean.

    mediafire.com

    when i make a line from right to left, as soon as my mouse passes a certain point, the belt switches into -100

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

  • never mind, i found it <img src="smileys/smiley1.gif" border="0" align="middle" />

    i just made an event that checks if the x value is higher than point b, if not, chnage the velocity to -100

    works like a charm. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • is there even a condition that can tell if the object is made left or right or right to left?

  • ahh yes i see. is there a way to set this during runtime, in the game the player can click two points and a conveyor will appear inbetween. now a positive value will work for conveyors made fromk left to right, but i want negative when players make conveyors from right to left.

  • yes! thyanks to you ive got some sweet looking conveyor belts. the thing i love about your method is the collision with the cube looks smooth in runtime, ive just been testing tons af angles for the belt and every time the box just sticks to the belt and moves. i love it <img src="smileys/smiley36.gif" border="0" align="middle" />

    there is one issue however, the direction of the belts on my game only go to the right of the screen, even if i place the belt the other way around, all boxes still move to the right :S

  • 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" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • woah, didnt expect to see something that works so good, this looks great <img src="smileys/smiley1.gif" border="0" align="middle" /> im still trying to get my head around exactly what you did, but i think im getting it. i still dont quite get where the movement is determined from even though it clearly works <img src="smileys/smiley5.gif" border="0" align="middle" />

    thanks Yann!

  • hey everyone,

    im trying to create a conveyor belt so a box will drop on and move along it. Ive tried appying a force to the box on collision with the belt but theres a problem, the force seems to only apply one making the box drop on, move a little then stop. is there a way to apply a constant force with contact on the belt?

    also the belt will often be different angles so the box will need to adapt.

  • 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" />

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

  • 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

  • i got it, i was using 2.0 lol. your right, that is the kind of thing i want, but the base is set in one place, i would need it so i choose where the base of the line will be by holding the mouse down, and dragging out the line like it does in the .cap