This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#51 2010-02-13 13:45:02

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Cnor wrote:

RHY3756547 wrote:

I'm using 16 sprites for collision. 4 collision types and 4 per type for scrolling.

He's just said that its a scrolling game, what has that got to dowith gears, axles and mechanics?

A scrolling gear mechanics game could come to mind.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#52 2010-02-14 04:28:10

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

The explanation for ghost effect not working is... That's right! Squeak! You have to blend the object with rest of the frame at program level (normally it's done via graphic card, but we're talking virtual machine now), thus take up processing power lowering the framerate.

Last edited by filo5 (2010-02-14 04:28:20)


Converting my Scratch projects to Python!

Offline

 

#53 2010-02-14 09:36:23

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

If this is an SSB game, you could make the sensor graphic around the attacks or something. But I doubt it is.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#54 2010-02-14 10:01:10

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Ace-of-Spades wrote:

If this is an SSB game, you could make the sensor graphic around the attacks or something. But I doubt it is.

That lags. I've tried.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#55 2010-02-14 10:49:54

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

filo5 wrote:

The explanation for ghost effect not working is... That's right! Squeak! You have to blend the object with rest of the frame at program level (normally it's done via graphic card, but we're talking virtual machine now), thus take up processing power lowering the framerate.

Oh yeah. I forgot it was running in Squeak VM.

Offline

 

#56 2010-02-14 14:12:34

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

fanofcena wrote:

Paddle2See wrote:

Jonathanpb wrote:

Hmmm... I think this belongs in Advanced Topics, RHY3756547.  smile

If the great Scratch master (that's you, of course) can't think of a solution, how could I?  tongue
I don't have a solution, sorry.  sad

I think what RHY3756547 is saying is that it is a bug that it isn't faster.  It seems to make sense that it could be faster as the sprite doesn't actually have to be rendered - only the collision and color sensing still needs to be performed.   But I have no idea if that actually is how the code works.

Maybe this topic belongs in Suggestions since RHY3756547 may be recommending that such a mode be developed?

However, on second thought, let's try it in Advanced Topics as Jonathanpb suggests and see if anybody has any alternate techniques.  Maybe move it elsewhere later.

I got it by Paddle2see's post RHY as scratch is fast enough at presentation mode instead of using ghost 100% you can use show hide blocks
like
|forever
|||show
|||hide

Belive me its faster then Ghost and for very simple objects Mathematics is the best solution  smile  .

That is the best way to do it.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#57 2010-02-15 08:48:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Ghost Effect 100 slows down project - could be optimised

Mr_X wrote:

All of that aside, what exactly does ghost effect do?
And if anyone wants to tell me what the motor functions in the stage are for then go ahead.

Ghost effect Changes the transparency of a sprite from 0% to 100%. The motor blocks are for use with LEGO WeDo motors (http://www.legoeducation.com)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer