Result:
a,1,b,2,c,3,d,4,e,5,f,6,g,7
Watch that the , are only between the values. That’s why i have the if then else.
Result:
a,1,b,2,c,3,d,4,e,5,f,6,g,7
Watch that the , are only between the values. That’s why i have the if then else.
Challenge #23 ready. 11 blocks.
Calculation resolution using iteration and timer?
How? Because I’m either stupid or I don’t understand something,.
The challenge was a long time ago. I would like a specific solution.
My two ideas look like this:
Although there is a third way. You can write your own extension …
If there is any other way, please show.
My Timer example was to show how time consuming tasks can be executed on Blockly. As for the challenge in question, you can use the Screen1 properties to obtain the display dimensions in DP.
Which specifically?
Screen1.Width
and Screen1.Height
.
Ok, now write how to get real resolution from these values.
That is your real solution. There is no such thing as “native resolution” from the perspective of a single app. It only gets the Display Independent Pixel (DiP or DP), and that is what matters.
Me too!
Challenge #23 @ 11 blocks only!
Edit : Challenge #24 @ 9 blocks…
Oops! Fixed.
The challenge was to determine the display resolution of the device.
How can you determine this resolution from what you wrote?
I keep asking about the same. This is a simple question. How to do it?
How to determine the display resolution as it was written in the challenge?
Please show this solution to us,
I am waiting curiously since the question was posted…
I think @Shreyash could solve this…
Just completed both challenges
Challenge 23 :- 21 blocks
Challenge 24:- 6 blocks
Hi
Can you tell me the challenge number of resolution challenge?
I think it should be 5 or 6 (maybe 4) …
Thank you.
And here are my blocks for Challenge xyz (screen resolution)
where x is height*width like 1080*720
Everything’s fine, but where to get X and Y?
x
is the input
but i don’t know where is y
That’s what it’s still about. There is nowhere.
Therefore, this challenge cannot be solved.