test with:
- SETSCREEN 480,320,TRUE (and False)
- SETSCREEN 960,640,TRUE (and False)
- SETSCREEN 9999,9998,TRUE (and FALSE)
and i test with resolution from Option -> Resolution (On Gl_B IDE Menu)
But the game run i portrait ... WHY?
Other info:
i use xcode 5.1 and ipod 4th gen with ios 6.0.1
Because SETSCREEN not designed to work on iOS and android at all.
Use the orientation command I fix it. Howover on ios8 there might been a change, so you might need to checkout the resolution by GETSCREENSIZE
How i use orientation command???
Please example :nw:
SETORENTATION Work fine!
But not the size of the screen, how to use GETSCREENSIZE?
I have to remove SETSCREENSIZE or what?
Please example ;)
SETSCREEN is designed to change resolution on DEKSTOP machines, so its can been used. So you can just remove that.
checkout how to use GETSCREENSIZE in the help. Its used like GETSCREENSIZE ScreenWidth, ScreenHeight.
make sure to supports both landscape orentations (if your game is not a tilt game). Here checks the device tilt and rotate it when needed.
Something like this:
FUNCTION ControlTilt: checkres=0
STATIC COUNTER=13
STATIC ORIN=0
LOCAL x, y
LOCAL NEWRIENTATION
USESCREEN -1
COUNTER=COUNTER+1
IF COUNTER>100 OR checkres=1 THEN COUNTER=85
IF (COUNTER=17)
IF ORIN>-1 AND (GETORIENTATION()<>ORIN OR checkres=1)
//IF ORIN>-1 AND (GETORIENTATION()<>ORIN) AND (ORIN=1 OR ORIN=3) // landscape only
LOCAL OORIN=GETORIENTATION()
SETORIENTATION ORIN
// ?IFDEF IPHONE
// IMPORT "C" int iOSSetOrientation(const char*)
// IF ORIN=3 THEN iOSSetOrientation("landscapeleft")
// IF ORIN=2 THEN iOSSetOrientation("portraitupsidedown")
// IF ORIN=1 THEN iOSSetOrientation("landscaperight")
// IF ORIN=0 THEN iOSSetOrientation("portraitnormal")
// ?ENDIF
ORIN=GETORIENTATION()
IF OORIN<>ORIN OR checkres=1
GETSCREENSIZE ScreenWidth, ScreenHeight
ResetBackground()
RETURN
ENDIF
ENDIF
ENDIF
IF COUNTER<15 THEN RETURN
IF GETORIENTATION()=0
y=GETJOYY(0)*100
x=GETJOYX(0)*100
ELSEIF GETORIENTATION()=1
y=-GETJOYX(0)*100
x=GETJOYY(0)*100
ELSEIF GETORIENTATION()=2
y=-GETJOYY(0)*100
x=-GETJOYX(0)*100
ELSE
y=GETJOYX(0)*100
x=-GETJOYY(0)*100
ENDIF
//IF device$="a" OR device$="ak"
// x=x/10; y=y/10
//ENDIF
IF y>60 AND ORIN<>2
ORIN=2; COUNTER=0;
// SetScaling()
ELSEIF y<-60 AND ORIN<>0
ORIN=0; COUNTER=0;
// SetScaling()
ELSEIF x>60 AND ORIN<>3
ORIN=3; COUNTER=0;
// SetScaling()
ELSEIF x<-60 AND ORIN<>1
ORIN=1; COUNTER=0;
// SetScaling()
ENDIF
ENDFUNCTION
the iOS8 issue im talked about with landscape is not a orientation issue, but a window bounds issue (orientation was still correct). So SETORIENTATION should not effect when that issue is fixed.
thanks for reply!
My game not is a tilt game.
I use only Landscape SETORIENTATION 1 and I remove SETSCREEN!
But when the game start it's scaled (see the image), I think the problem it's Z Project - universal screen size scaling system, but i don't know how to fix this problem.
I have GETSCREEN at the top of code:
GLOBAL screen_w, screen_h
GETSCREENSIZE screen_w, screen_h
and another in Z Project - InitZ(1) Function:
GETSCREENSIZE x_res,y_res
you have propety set it too early, so scaling is wrong. you should reinit it after orientation. But that is not my job. Im have allways used my own scaling system, which dosent uses offscreen buffer.
The problem it's the new version 12.308 ... but i don't know why....
I compiled the game in old version 12.096 and it work fine (correct fullscreen landscape mode)
Another Bug ... :whistle:
this ios 7 is now bugged. This is due a attempt to fix a iOS8 issue (which have changed how the window frame works), which is extractly what you see now (and Gernot have confirmed it, hopefully fixed soon):
http://www.glbasic.com/forum/index.php?topic=9971.msg87503#new
Ok I wait for fix and for now i use 12.096 ...
I hope Gernot, also solves my problem with Background (black line)....
I write to him a private message, but he did not answer ...
I wait .... :whistle:
im have no idea what refenence you meant with blackborder.
Howover Gernot cant anwear all messages, and if he did, he would not have time to bugfixes the bugs from the main forum. So its not a good idea to do support to him via pm. That why we have a forum here, but its seen you wont do a full example on the issue.
Howover if you use SMOOTHSHADING TRUE, then that might needs to see alpha multiply issues on the borders (which can been very bad on tiles). So you should try to uses SMOOTHSHADING FALSE instead before drawing the polygon.
http://www.glbasic.com/forum/index.php?topic=9861.0
I write in Forum my problem with a black line border:
http://www.glbasic.com/forum/index.php?topic=9980.0 (http://www.glbasic.com/forum/index.php?topic=9980.0)
The problem with SMOOTHSHADING FALSE it's in change of resolutions, the graphics are horrible ... :noggin:
you can do nothing, its a limit. That issue have been around nearly since beginning and in years. Its a alpha MULTIPLY issue you property see. SMOOTHSHADING TRUE is just ugly to uses with tiles, so dont do that (im diddent do that my self in both my games due that issue). Yes its might been blocky, but you need to do workaround by other way.
You can do enable and disable SMOOTHSHADING on the same picture, so you can disable it for tiles, but using it for sprites etc.
Im pretty sure this issue will not been fixed, because its property not possible at all. The only way this can been fixed (if possible) is in the CLEARSCREEN command, if its was possible to clear the picture in a different way with a white background and invert the alpha values in its memory (CLEARSCREEN RGB(), ALPHA).
I test to enable/disable smoothshading only on BG ....
But it's horrible in fullscreen Mode ....
You think it's impossible to modify in GL_B???
You think Gernot not reply me????
I think you're right!
He's probably busy at the moment.
The issue have been in years. If it's a retro style game, I'm do perfer blocky graphics.
You could try to use 2x graphics, because downscaling look more clean than upscaling which smoothing is turned off. Alternative you can add noise filter, scanline etc on the too. Just don't use smoothing on tiles.
My games have both normal and retina version of same graphics to avoid upscaling as much as possible.
I'm thinks I'm reported when im created greedy mouse. I'm thinks that could been why I'm not using virtual screen.
I'm do hope this landscape issue got fixed soon.
For use 2x GFX I have to change all my code based on Z-Project Resize System and it's impossible fo now.
Z-Project cant do anything. Upscaling will allways been somewhere blocky. Howover im do love blocky graphics if done nice. So if you do a example 320x240 game, leave them blocky when upscaled and eventuelly perform scanline (if user want it). Its have its own shame of it. Erico is also doing somewhere similar with his game. Here he does uses 428x240, which seen got upscaled better for his retro inspirated arcade game (its a great one).
My newest game, Spot Race will also suffer for the same issue, but nothing im wont do anything, because its look like its a part of the game.
Sorry we takled in this thread, but im did just reply here, even its would make more seacne countinue in the other thread you created.
But my game work perfectly, in win and android, and system resize work fine in all screen resolution!
I have to change the gfx and removing Z-Project only for a black line?
I have to make a big work for a native problem of GL-B?
I can not do it now, it's too much work!
If Gernot fix my problem, well ... otherwise I will find a solution .... :puke:
im thinks we misunderstanding....
if its this issue:
http://www.glbasic.com/forum/index.php?topic=9971.0 (that is corresponds to this thread).
That black line issue would been fixed and is currectly broken now (correntsponds to this confirmed issue). Im have giving the code so its should been a easy fix to that one. That just got broken due triying fix a iOS8 issue (even its was NOT a top priotity).
if its a black outline issue due SMOOTHSHADING. That property wont been fixed. Its a limit on that command. Its property due a improperty uses of CLEARSCREEN with wrong clearance of alpha bytes.
if its a other issue, post a screenshot (eventuelly in the correct thread).
But with other hand. dont pm for help. Gernot is busy allready, so better get help here, eventuelly with confirmed bugs and list them.
I post my problem in this thread:
http://www.glbasic.com/forum/index.php?topic=9991.0 (http://www.glbasic.com/forum/index.php?topic=9991.0)
and i post example of my error here:
http://www.glbasic.com/forum/index.php?action=dlattach;topic=9980.0;attach=6864 (http://www.glbasic.com/forum/index.php?action=dlattach;topic=9980.0;attach=6864)
Yes writing personal messages to gernot about your personal problems is a very bad idea and also very egocentric. Just think about how much time he will need to answer all pms, if everyone does this. Post your problems in threads, like everyone else does. So we avoid the problem, that 10x persons sends pms about same problems and maybe you even get an solution/hint from other forum members. So plz dont send pm, if it can be avoided.
im end here, but im will post it in the right thread to avoid talking about the borderline issue, which is not in this thread. That is actuelly offtypic, so im will not write about that issue anymore.
But please dont pm with personal issues. Im also only pm Gernot few times, but none was about issues, and is long time ago.
If the Forum can not help me because the problem is in the core engine, and the only one who can help me is Gernot, I would be egocentric?
Then tell me who I should ask for help!
I have to release my game, which, unfortunately, is based on that system Background!
Now, or I'm going to change the whole system of tiling of the BG or solve the problem with the help of Gernot!
If he tells me that it's impossible to fix on the Mac, then take the long way and i change system BG!
I don't see all of these requests for help that clog the Forum!
im also cant help anyone in pms too, because most of them is typical issues im wont answear again and again. Im also perfer for support Android Extras by the forum too and not pms, due most is the same im got asked for. You should sometimes give people a change to look on the code or such.
But anyway im have confirmed both bugs and have listed them in the bug section. So hopefully they got fixed in a recent update! Im do cant help any future yet in this issue.
Quote from: spacefractal on 2014-Sep-02
im also cant help anyone in pms too, because most of them is typical issues im wont answear again and again. Im also perfer for support Android Extras by the forum too and not pms, due most is the same im got asked for. You should sometimes give people a change to look on the code or such.
But anyway im have confirmed both bugs and have listed them in the bug section. So hopefully they got fixed in a recent update! Im do cant help any future yet in this issue.
Thanks for help ;)
Quote from: Kyo on 2014-Sep-02If the Forum can not help me because the problem is in the core engine, and the only one who can help me is Gernot, I would be egocentric?
Yes you would be.
1) Most problems from many users, that I did read in the past, where user related, not bugs! If you pm Gernot about a 'problem' that is just your own fault, you waste his time. Post it in the forum, so we can find out together what is the real problem.
2) Even if its a bug, others may hit the same problem. So if everyone just pms Gernot instead of using the forum, he gets 10x reports about same problem... that just wastes his time.
Quote from: Kyo on 2014-Sep-02Then tell me who I should ask for help!
Easy to answer this: post in the forum! Gernot does read it. You may get help from other users and you also help otehr users, that may have the same problem. And you save Gernots time. Its a win-win situation!
This is just your thinking:
I wrote the problem on the Forum to see if someone could help me.
When I realized it was a problem of core engine, I asked help to Gernot in pm.
I've never written for other problems in pm to Gernot, I written only in Forum!
Why I wrote in pm now?
1) I have the game almost ready, and if I don't fix the problem I can not release for Mac (and maybe for iOS ?!?) for you not is important, but for me it's very important!
2) I buy GL_B and for me it's normal to ask help from those who've paid (if you look other engine or middlewere, all have a contact for issues related to their Engine)
I do not have to ask permission to write to Gernot, I am an educated person and if he is busy, can not even to reply me.
Obviously if Gernot solve my problem, I written on the Forum how he solved my problem!
I'm sorry that he works alone in GL_B, maybe he should find someone who can help with work!
Im thinks we should not go future with the offtypic PM debate. Im want to see that all got removed, which is include mine.
In the end the borderline issue can been easy to been fixed in the end.
Quote from: spacefractal on 2014-Sep-03
Im thinks we should not go future with the offtypic PM debate. Im want to see that all got removed, which is include mine.
To me valid arguments & points where raised with regards to the PM issue or are we going to sweep it under the carpet like the "GLB Future" issue. If you are unhappy with your comments then please edit/delete them if you so wish as they are your posts & you have control over it, if you do not like other peoples comments then that's your choice unless it's a personal attack on yourself then that's different.
Technically the PM issue was not offtopic as it was the original author who brought up the PM subject in the first place & others put their views on that subject.
Probably I will find this post deleted because of my views.
Lee
Its really sad, what this "GLB Future" incident has done to us, this paranoia... We dont delete posts in this forum, unless there is a really good reason (like strong personal attacks, breaking laws) to do it...
It's was just general meant, but this seen why forum is often better than pm sometimes.
Mah ... I don't understand what is the problem!
Finally, Gernot and spacefractal have solved my problem (I have to test on Mac tonight and i confirm if they work).
Really we make a useless discussion, because I asked help in PM to Gernot? :blink:
As Kononet has stated, the Mods had no control over the deletion of the GLB Future thread and it looks as though the person responsible has not returned since it happened. This was an isolated case where the forum wasn't locked down for whatever reason and a non-admin poster found a loophole and managed to delete the whole thread deliberately. This is now fixed and won't happen again.
Opinions are valid and welcomed here - whether we agree with them or not. It's not our job to censor them, unless they cause offense to others, are illegal, go against the forum rules or promote illegal acts or irresponsible behaviour.
It looks as though the original issue may now be resolved, which is great - although please can you confirm this Kyo.
Nice work Alan (SF). :)
Quote from: Ian Price on 2014-Sep-03...the person responsible has not returned since it happened.
Not returned? :o Why is his account not suspended? :glare:
Not his fault that we were too stupid to set the permissions right on the forum. And we are not very hard on people usually :-)
Bots spamming the forum though is something else. They get booted with a vengeance.