Message Board
Message Board > Fenix / Bennu / Gemix / DIV > Scrolling and Z-coordinates |
June 6, 2008, 22:19 | |
Imerion
None 19 posts |
I want to display some things behind my scroll, but it won't work. I have tried to change the Z-value of the scroll with "Scroll[0].z" but that doesn't seem to work. How can I place these processes behind my scroll?
____________ Try my games : http://gamejolt.com/profile/imerion/5288 |
# |
June 6, 2008, 23:28 | |
Rincewind
programmer 1545 posts |
Edit: Sorry for the confusion - the earlier post didn't apply to the newest Bennu version. What Fenix version are you using? Things look rather different in 0.84a than they do in the newest version. In Bennu, scroll[scroll number].z works fine. Fenix code: Program test; Declare process tosti() End Global My_map; Begin Set_mode(800,600,16); My_map=new_map(400,400,16); Map_clear(0,My_map,RGB(255,0,0)); Start_scroll(1,0,My_map,0,0,0); //Scroll[1].z=500; //With this uncommented, the scroll moves over the tosti process. tosti(); Loop Frame; End End Process tosti() Begin Graph=new_map(20,20,16); Map_clear(0,Graph,RGB(0,255,0)); x=200; y=200; z=511; //512 is behind the scroll plane, 511 is on top. Loop Frame; End End In Fenix 0.84a though Scroll[scroll number].z indeed doesn't seem to work, and the z value of the scroll plane is always 0, which you can go behind by giving a process a z value higher than that. [Edited on June 7, 2008 by Rincewind] ____________ Personal website: http://www.loijson.com |
# |
June 7, 2008, 00:30 | |
Imerion
None 19 posts |
I am using version 0.92a, the latest version available for Linux. I tried using z=512 (and more) for the process I want behind the scroll, but it did not work.
____________ Try my games : http://gamejolt.com/profile/imerion/5288 |
# |
June 7, 2008, 00:48 | |
Rincewind
programmer 1545 posts |
I just tried my example in 0.92a for Windows with z=512 for tosti() and it works fine, and scroll[scroll number].z also works as it should. You aren't pinning the process to the scroll plane with ctype=c_scroll, are you? [Edited on June 7, 2008 by Rincewind] ____________ Personal website: http://www.loijson.com |
# |
June 9, 2008, 02:03 | |
Imerion
None 19 posts |
Yes, I was doing that. But I thought that simply made it work with the same coordinates as the scroll, not necessarily putting it on top of the scroll. However, when I removed it I managed to get it behind. Thanks for the help!
____________ Try my games : http://gamejolt.com/profile/imerion/5288 |
# |
June 10, 2008, 17:59 | |
Dennis
どこかにいる 2092 posts |
I heard the standard scroll function is quite slow, so perhaps someone made a better one that is quicker and allows infinite panes. (I only found a maximum of 2 panes in the standard scroll function) And you have no Z trouble when you use that. You define it yourself then. I always used the standard scroll though. ____________ Kwakkel |
# |
June 11, 2008, 21:10 | |
Sandman
F3n!x0r 1194 posts |
You can make more internal scrolls and let one follow the other, even at different speeds. But I agree, your own will suffice, as it's just a bunch of offset calculation, though I do find it proper that processes *inside* the scroll can't be *behind* it.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
Message Board > Fenix / Bennu / Gemix / DIV > Scrolling and Z-coordinates