How can you make a car stand on a red light?

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
choggoba
Townsman
Reactions:
Posts: 50
Joined: 20 Jul 2018, 08:30
Location: Korea
Plugins: Showcase Store

Platform

How can you make a car stand on a red light?

#1

Post by choggoba »

I'm making a different kind of traffic light.
(Transverse signal light)

I succeeded in making the red light and blue light blink.

But they couldn't figure out how to stop the car from the red light.

Is there a good way?


Code: Select all

[
  {"id":"traffic_signal02_choggoba_00","type":"animation","frames":[{"bmp":"traffic signal2_1.png","x":0,"w":32,"handle y":17}]},
  {"id":"traffic_signal02_choggoba_01","type":"animation","frames":[{"bmp":"traffic signal2_1.png","x":32,"w":32,"handle y":17},{"bmp":"traffic signal2_2.png","x":32,"w":32,"handle y":17},{"bmp":"traffic signal2_3.png","x":32,"w":32,"handle y":17}],"speed":0.1},
  {"id":"traffic_signal02_choggoba_02","type":"animation","frames":[{"bmp":"traffic signal2_1.png","x":64,"w":32,"handle y":15}]},
  {"id":"traffic_signal02_choggoba_03","type":"animation","frames":[{"bmp":"traffic signal2_1.png","x":96,"w":32,"handle y":15},{"bmp":"traffic signal2_2.png","x":96,"w":32,"handle y":15},{"bmp":"traffic signal2_3.png","x":96,"w":32,"handle y":15}],"speed":0.1},
  {
    "id":"traffic_signal02",
	  "author":"choggoba",
    "type":"road decoration",
    "title":"traffic signal2",
    "text":"가로식 신호등",
    "price":50,
    "animation":[
      {"id":"traffic_signal02_choggoba_00"},
      {"id":"traffic_signal02_choggoba_02"}
    ],
    "frame animation indices":[
      [0,1],[0,1],[1],[1],
      [0],[0],[],[],
      [0,1],[0,1],[1],[1],
      [0],[0],[],[]
    ],
    "animation fg":[
      {"id":"traffic_signal02_choggoba_01"},
      {"id":"traffic_signal02_choggoba_03"}
    ],
    "frame animation fg indices":[
      [0,1],[0],[0,1],[0],
      [0,1],[0],[0,1],[0],
      [1],[],[1],[],
      [1],[],[1],[]
    ]
  }
]
Attachments
Screenshot_20180802-073929.png

User avatar
CommanderABab
AB
Reactions:
Posts: 11107
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How can you make a car stand on a red light?

#2

Post by CommanderABab »

Yes, there is a way, you might check the barrier road.zip for how to do it. The thing is traffic will stop in both directions. For stopping in only one direction, you would have to study the road directions topic and change the road by fun when the light is to be red and vice versa for green.
Show
Korean
예, 길이 있습니다, 장벽을 확인할 수 있습니다. 수행 방법을 찾으십시오. 것은 트래픽이 양쪽 방향으로 멈추는 것이다. 한 방향으로 만 멈추려는 경우, 도로 방향 주제를 연구하고 빛이 빨간색 일 때 도로를 재미로 변경하고 녹색 일 경우 도로를 변경해야합니다. 구글 번역.

User avatar
choggoba
Townsman
Reactions:
Posts: 50
Joined: 20 Jul 2018, 08:30
Location: Korea
Plugins: Showcase Store

Platform

Re: How can you make a car stand on a red light?

#3

Post by choggoba »

Thank you for your kind explanation. I found out what I had to study. I will study with reference to other plug-ins.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”