Skip to content
View in the app

A better way to browse. Learn more.

主视角中国

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

请教liu8888

Featured Replies

liu8888老师,好久没有向你请教问题了.在同一张地图中能否出现白天和黑夜的效果?(就是地图开始时是白天,过3或5分钟后就变成黑夜了,如此循环.)

可以的

将天气的参数改前和改后加一个时间如

thread day

day:

$world farplane_color (........)//改前

wait 30 //30秒

$world farplane_color (.1 .1 .14)//改后

thread day//循环

end

  • 作者

老师.按照你教的改动后.过30秒后,天气可以改变.但不知为什么却无法循环.望指教.

level waittill spawn

thread day1

thread day2

/////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////

day1:

$world farplane 5000

$world farplane_color ( 1 0 0 )

wait 30

$world farplane 5000

$world farplane_color ( 0 1 1 )

thread day

end

day2:

$world farplane 5000

$world farplane_color ( 1 1 1 )

wait 30

$world farplane 5000

$world farplane_color ( 1 1 0 )

thread day

end

1.理论上应是一个指令才行,thread day1

2.为什么要设2条指令?

thread day1

thread day2

这样电脑会执行那一条呢?

3.这里有错

day1:

$world farplane 5000
$world farplane_color ( 1 0 0 )

wait 30

$world farplane 5000
$world farplane_color ( 0 1 1 )

thread day//<-------应是thread day1

end[/code]

  • 作者

谢谢老师,已改成功,(在第二个天气效果下面加了一句时间指令后,就能正常运行了.)

thread day1

day1:

$world farplane 5000

$world farplane_color ( 1 0 0 )

wait 30

$world farplane 5000

$world farplane_color ( 0 1 1 )

wait 30

thread day1

end

Create an account or sign in to comment

Account

Navigation

搜索

搜索

设置浏览器推送通知

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.