hey i was wondering if someone knew how to go about making a "pinch" effect block.
for example
"set [up,down,left,right] pinch to ( )"
the reason for this block is for 3d effect' combining this block and the stretch/v-stretch would mean we could "stretch" and "pinch" a texture over a wireframe surface for texturing. like if you use the v-stretch block it would look like the object was tilting back.
but as things get farther away they appear to get smaller, so instead of just tilting back it could look like it was tilting back AND pinch the top for a proper 3d effect.
Offline
There is an obsolete stretch block, and it is pretty easy to get it to stretch in the other direction too.
Offline
TheSuccessor wrote:
There is an obsolete stretch block, and it is pretty easy to get it to stretch in the other direction too.
ya i know about the stretch blocks but i was hoping there would be a way to make a pinch block.
Offline
I don't know what you mean. Would stretching a negative amount work?
Offline
here i made a project about it
Offline
Hmmm... ...difficult. Ask nXIII.
Offline
I think what you really want is skew as well as pinch, but the pinch would not do exactly as described in the project; it would decrease or increase each row of pixels' width linearly (zero at one end, w(n/100) at the other). Skew shifts each row of pixels linearly based on a percentage. These together could be used with the stretch blocks to create true 3d surfaces.
Offline
nXIII wrote:
I think what you really want is skew as well as pinch, but the pinch would not do exactly as described in the project; it would decrease or increase each row of pixels' width linearly (zero at one end, w(n/100) at the other). Skew shifts each row of pixels linearly based on a percentage. These together could be used with the stretch blocks to create true 3d surfaces.
ok well that's what i was hoping for anyway, but now how might one go about making it? or is it even possible?
Last edited by awsomemaster (2010-09-12 15:08:49)
Offline
nXIII wrote:
Yea, I guess you could just use some BitBlt or Form methods, or you could write your own primitives.
bitblt sounds good.
as for writing my own prims, i think ill pass on that
i'm not too good at C, C++ Slang or any sort
Last edited by LS97 (2010-09-12 15:25:51)
Offline
so you can't make it in to a block? and what's bitblt?
Offline
so where do we go from here? cause i couldn't code a scratch block to save my life lol.
Offline
wait, how do you get the strech block?
Offline
poemon1 wrote:
---EPIC--- wrote:
wait, how do you get the strech block?
('stretch by %n' #- #changeStretchBy: 5)
put that under looks
I just stumbled on this, and have no idea how one goes about adding that under looks? Is there a place you click to access a field or something? After about 10 minutes of futzing around I found a downloadable project with, "set stretch to [number]%" and, "change stretch by [number]" and after playing with the two for less than 5 minutes I have to ask why these were removed? I was literally looking for a feature like this yesterday. I wanted to scale a line from an origin point to a destination point, and wound up having to settle for a much uglier (and I think complex) system of placing a series of off set sprites.
Are there plans to add a "change x size by [number]", "change y size by [number]", "set x size by [number]%" and, "set y size by [number]%" to scratch in the future? I could see these being arrow menus with the current size node to help keep the interface clean. Again with out such features why would they remove the one thing that did this?
Offline
jinggle wrote:
poemon1 wrote:
---EPIC--- wrote:
wait, how do you get the strech block?
('stretch by %n' #- #changeStretchBy: 5)
put that under looksI just stumbled on this, and have no idea how one goes about adding that under looks? Is there a place you click to access a field or something? After about 10 minutes of futzing around I found a downloadable project with, "set stretch to [number]%" and, "change stretch by [number]" and after playing with the two for less than 5 minutes I have to ask why these were removed? I was literally looking for a feature like this yesterday. I wanted to scale a line from an origin point to a destination point, and wound up having to settle for a much uglier (and I think complex) system of placing a series of off set sprites.
Are there plans to add a "change x size by [number]", "change y size by [number]", "set x size by [number]%" and, "set y size by [number]%" to scratch in the future? I could see these being arrow menus with the current size node to help keep the interface clean. Again with out such features why would they remove the one thing that did this?
I don't know why they removed it.
To add that block to your Scratch, you'll have to open the browser. There are some good tutorials on that around Advanced Topics.

Offline
awsomemaster wrote:
TheSuccessor wrote:
There is an obsolete stretch block, and it is pretty easy to get it to stretch in the other direction too.
ya i know about the stretch blocks but i was hoping there would be a way to make a pinch block.
If you use a negative number it should work...

Offline