Newbies of the World.

Recently some ask about how  a Morph do some at fixed repeating time.
I answer use
 step (What you wish) and stepTime  (time in milliseconds for repeat action)

I attach BatMorph who was originated by some .gif send by Chris (I think was
he) and  convert in the pest present in all my images.

Could you made elaborate flies ? Bat hide and show ? Bat changing color
random or following some color schema ?

Participate ! Ask if have troubles.

Use whathever image you have as BatMorph lives in any image.
For Pharopatas could have Fun , file in the attached .st first.

Could be cool if you use Trunk and help to us to debug and polish.

Prize: Foto of Rosario signed

Edgar


Attachment: BatMorph.morph
Description: Binary data

'From PharoCore1.0rc1 of 19 October 2009 [Latest update: #10502] on 19 February 
2010 at 8:01:06 am'!

!Morph class methodsFor: 'filein/out' stamp: 'stephane.ducasse 3/13/2009 17:53'!
fromFileName: fullName 
        "Reconstitute a Morph from the file, presumed to be represent a Morph
        saved via the SmartRefStream mechanism, and open it in an
        appropriate Morphic world"
        | aFileStream morphOrList |
        aFileStream := (MultiByteBinaryOrTextStream with: (FileStream 
readOnlyFileNamed: fullName) binary contentsOfEntireFile) binary reset.
        morphOrList := aFileStream fileInObjectAndCode.
        morphOrList := self postLoad.
        ActiveWorld addMorphsAndModel: morphOrList! !
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to