Browse Search Popular Register Upload Rules User list Login:
Search:
Race complex... PLEASE HELP!!

Image:
screenshot of the scene

Author: Joker

Group: Default

Filesize: 109.32 kB

Date added: 2010-04-18

Rating: 5

Downloads: 496

Views: 675

Comments: 5

Ratings: 1

Times favored: 0

Made with: Phun

Tags:

Scene tag

Hi, my problem is that after the first lap of the weasel track the time isn't reset for the times 5 laps. :s :s

the problem is probably in the scripting of the invisible chequered line gate.

Im really enjoying developing this complex so please help me overcome this problem!

:cry: :cry: _o_ _o_ :cry: :cry:
Please log in to rate this scene
edit
Similar scenes
Title: complex marble race map #4
Rating: 5
Filesize: 219.35 kB
Downloads: 1203
Comments: 0
Ratings: 1
Date added: 2016/02/06 05:30:18
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The Complex Marble Race
Rating: 5
Filesize: 0.58 MB
Downloads: 1425
Comments: 5
Ratings: 1
Date added: 2014/05/17 15:36:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Garage Door|somewhat COMPLEX?
Rating: 1.6667
Filesize: 25.61 kB
Downloads: 418
Comments: 0
Ratings: 3
Date added: 2008/10/29 00:31:20
Made with: Phun
Rating: rated 1.7
download
Title: complex machinery that transports marbles
Rating: 5
Filesize: 17.76 kB
Downloads: 231
Comments: 0
Ratings: 1
Date added: 2025/08/01 18:14:33
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: Tank and Complex Gun
Rating: 5.75
Filesize: 0.73 MB
Downloads: 347
Comments: 2
Ratings: 4
Date added: 2009/02/05 03:15:57
Made with: Phun
Rating: rated 5.8
download
Title: The Amazing Marble Race, Leg 3[OFFICIAL]
Rating: 5
Filesize: 431.09 kB
Downloads: 1931
Comments: 1
Ratings: 1
Date added: 2019/06/17 21:17:12
Made with: Algodoo v2.1.0
Rating: rated 5
download
lol you cannot reset sim.time variable besause it is a SYSTEM variable
so just make other var in console
-------------
scene.my.Jtime := 0.1 (point is needed for real data type)
-------------

Enjoy!
Thanks for your help:tup: nice and clear but I think I made a mistake. The variable dosen't count time, it only takes the 0.1 value... :s

sorry I'm new to coding and don't really understand this system.

I'm also thinking that if the car makes contact with the start gate every time then the Jtime variable will be constantly reset....

Any suggestions?
scene.my.Jtime := 0.1 -- this you need to insert to console (F11)
also you need ane more var (let it be scene.m.JLtime := 0.1 (Real data type too)

that's the code for your @timer@
in finish box it "oncollide" :
-----------
scene.my.JLtime = sim.time; scene.my.Jtime = {sim.time - scene.my.JLtime} (Braces required)
-----------
in "Time-Show" box we write : text:={""+scene.my.Jtime} (braces required)
ok, that all worked good but the jtime variable resets every contact with the car, so every lap it resets... have I done something wrong?
Everything works correctly, but I do not understand a bit what you need.