29 November 2012, 00:29 | #1 |
Registered User
Join Date: Nov 2010
Location: Invercargill, New Zealand
Posts: 176
|
Blitz Basic Screen setup
I have been working on a game in Blitz basic and have used a single bitmap in a slice to display the game level on the screen. The bitmap is 672x480 which is the full size of the level. The slice I am currently using to display this bitmap is 224x160 which I want centered in the middle of the screen.
Now here is the tricky bit I want to use a different bitmap that is 60x320 to display the score but I can't seem to figure out how to get with slices. I did have it displaying the two bitmaps when I changed the code to use initcoplist, create display and displaybitmap but it now shows 320x160 of the bitmap that is 672x480 from the left of the screen. Is there any way I can use 2 slices to display different bitmaps or use the initcoplist, create display and displaybitmap and adjust the width that is displayed and the positioning ? example of what I want it to look like Uploaded with ImageShack.us Any help is appreciated. |
29 November 2012, 11:00 | #2 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,167
|
There is a DisplayAdjust command that allows you to fiddle about with width and stuff but to be honest I don't really know how to use it. I'd also stick to using the Display library commands (InitCoplist, CreateDisplay etc) as they are a bit more flexible and nicer to use than Slices and if you ever want to use AGA you'll need them also.
However I'd maybe recommend just experimenting with different values for DisplayAdjust and see what you can come up with. |
29 November 2012, 22:43 | #3 |
Registered User
Join Date: Nov 2010
Location: Invercargill, New Zealand
Posts: 176
|
Thanks
Command is DisplayAdjust CopList#,fetchwid,dUfstrt,dUfstop,diwstrt,diwstop I typed out the Display Example 2 program on page 88 of the BlitzBasic 2 - Manual-ENG.pdf and adjusted its DisplayAdjust command several times and I think DisplayAdjust 0,0,0,0,48,-48 is what I want. I made a screenshot and compared it with the screenshot of the slice I have and it appears to be the same width (224px) and positioned in the same place. Now lets hope I can get it working in my own program. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blitz Basic Questions | diablothe2nd | Coders. Blitz Basic | 161 | 06 September 2019 12:09 |
Blitz basic 2 Help | Havie | Coders. Blitz Basic | 30 | 08 September 2013 09:15 |
blitz basic | petza | request.Apps | 11 | 08 April 2007 01:49 |
Blitz Basic 2 anyone? | jobro | request.Apps | 12 | 28 November 2005 18:15 |
Blitz Basic 2 | LaundroMat | Retrogaming General Discussion | 5 | 24 July 2001 08:10 |
|
|