Jump to content

lego3057

Eurobricks Vassals
  • Posts

    82
  • Joined

  • Last visited

Everything posted by lego3057

  1. Hi, The invert option can have a drawback: the train passes the coloured plate, and when it comes back it inverts again. So I if you use setmotorspeed or equivalent, it will always go the right way.
  2. So there is no way you can change the value of a variable, that was declared in global code? Thanks.
  3. Hello. Nice work. 10 wide trains are a new world to explore. In your model I would try to use the 4x3x1 windows and the 2X3X1. The top tecnhic bars I wouldnt´ use. It adds a lot of weight. I would use 2 train motors (power, speed and easier buildind.
  4. Hello I´d like some help with C++ variable assignment and reassignment. In Global code I declare: publ INT B_red=0; In Sensor event code: if(B_red==0); //its OK B_red=1; //gives an error So I only want to be able to change the value of B_red in sensor event code, how do I achieve that? Thanks
×
×
  • Create New...