I am making a game with a minimap and som smoke emitters
and have now expirenced a strange problem with my minimap camera.
Can some one tell me why moveing only the main camera makes
the smoke emitter change apperence in the minimap view ?
Init:
sync on
sync rate 60
autocam off
set text size 24
phy start
position camera 0, 0, 3, -15
make object box 1, 1, 1, 1
color object 1, rgb(0, 255, 0)
position object 1, 3, -0.5, 3
make object box 2, 10, 0.1, 10
color object 2, rgb(130, 225, 100)
position object 2, 0, -0.5, 0
phy make smoke emitter 4, 25, 0, 0, 0
`minimap camera
make camera 1
color backdrop 1, rgb(0,0,0)
set camera range 1, 1, 100
position camera 1, 0, 10, 0
rotate camera 1, 90, 0, 0
set camera to image 1, 1, 250, 250
set current camera 0
Mainloop:
do
if get key state(0x76)<0 then position camera 0, 3, -15:rotate camera 0, 0, 0, 0:cammode=0
if get key state(0x77)<0 then position camera 0, 0, 15, 0:rotate camera 0, 90, 0, 0:cammode=1
paste image 1, 15, screen height()-image height(1)-15, 1
phy update
sync
text 10, 10, "Change main camera view by pressing F7 or F8"
text 10, screen height()-image height(1)-40, "Minimap camera 1 - Top view"
if cammode=0 then text 10, 30, "Main camera 0 - Front view"
if cammode=1 then text 10, 30, "Main camera 0 - Top down view"
loop
>Code Maker<