Createscreen

Previous topic - Next topic

MrPlow

Hey guys

I am having a bit of brain freeze trying to get a Createscreen to clear for virtual screen sprite USESCREEN 1
I try to clearscreen it and drawrect to blank it but nothing works?

This is bound to be something really easy.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

some code please.... Not sure what you mean.

CreateScreen was not intended to been run with each SHOWSCREEN, but more using with virtual screen and such. Its too slow.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Hi SF, your up late too!

Hard to explain - not one piece of code is fully useful for explain PSEUDO code is easier

I am using createscreen to replace GRABSPRITE

So



CREATESCREEN 0,199,ww,hh // main view scales up for mobile
CREATESCREEN 1,99,wi,he   // mini port view for small section of screen (replacing grabsprite)

USESCREEN 0 // MAIN VIEW AND SCREEN BUT WILL BE SCALED ON VIRTUAL USESCREEN
All other screen stuff
including DRAWSPRITE of Sprite 99

USESCREEN 1
Draw on mini screen

USESCREEN 0 // back to other screen


USESCREEN -1 // mobile second virtual screen
STRetchsprite 0 to full mobile display.

All is working except the clearing on the USESCREEN 1

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Hope that helps explain it...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#4
Can been property a bug. You should do a full example and report the bug. then its much easier to do. Clearscreen might not effect what set to usecreen.

Also you can uses zoomsprites, rotated sprites as well using VIEWPORT as well. etc redraw it on the small VIEWPORT screen.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

OKay thanks - will keep trying to get a solution...probably something simple I need to do...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

erico

Instead of drawrect, can you try drawing a black full screen bitmap instead?
I think I ran into this while dealing with virtual screens.

I will be back into coding this weekend and can sure take a look for you.

MrPlow

Thanks Erico

I had an idea that I was going to try to fill up the area with a Loop of Drawlines to clear it.
Not sure why drawrect doesn't seem work.

I am basically putting my Turtle Program on Android - Its a good fit and I redid the interface instead of typing you can add code with buttons.

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Think I solved the issue...
I had two functions doing RESET of screen and placed clearing code in the wrong one.
:)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs