S
t
a
r
t
Diary
Diary
Download egg-O-shOOter
Download
How to create your own egg-O-shOOter ?
Insight
Frequently asked questions
Questions?
egg-O-shOOter Food
Food
Links
Links
I
m
p
r
i
n
t
Klick hier für die deutschsprachige Version.

At this column you can learn to create your own egg-O-shOOter.
<<<     Connected objects     >>>

Until now you just learned to handle single objects. For sure you realized the 'odd bird', pulling a banner behind himself. You can achieve this effect by defining two objects (bird + banner) with identical speeds being started at the same time. The more simple way is to tell egg-O-shOOter that these two objects belong together. Therefor the variable ObjectConnect exists. Let's define a bird and a banner and connect both objects:

#1#
ObjectNumber=1       #1#Schraeger Vogel / Odd bird
ObjectFront=1
ObjectStartActive=1
ObjectTexture=79
ObjectF=-1
ObjectD=-1
ObjectSecMin=-1
ObjectSecMax=-1
ObjectConnect=-1
ObjectKoordPre=-1
ObjectHitDirection=1
ObjectXMin=+800
ObjectXMax=+800
ObjectYMin=+160
ObjectYMax=-100
ObjectDMin=60
ObjectDMax=60
ObjectAMin=0
ObjectAMax=0
ObjectVXMin=-80
ObjectVXMax=-100
ObjectVYMin=0
ObjectVYMax=0
ObjectVRotMin=0
ObjectVRotMax=0
ObjectRotAxis=3
ObjectVGrowMin=0
ObjectVGrowMax=0
ObjectGravMin=0
ObjectGravMax=0
ObjectMoveXMin=-800
ObjectMoveXMax=+1000
ObjectMoveYMin=-1000
ObjectMoveYMax=+1000
ObjectMoveAMin=-360
ObjectMoveAMax=+360
ObjectMoveRMin=1
ObjectMoveRMax=1000
ObjectMoveType=3
ObjectType=1
ObjectBenefitMin=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectBenefitMax=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectMirror=0
ObjectMovePointing=1
ObjectHitSound=
ObjectAppearSound=
ObjectHitTextEnglish=
ObjectHitTextGerman=

#1#
ObjectNumber=2       #1#Banner / Banner
ObjectFront=1
ObjectStartActive=1
ObjectTexture=81
ObjectF=-1
ObjectD=-1
ObjectSecMin=-1
ObjectSecMax=-1
ObjectConnect=1
ObjectKoordPre=-1
ObjectHitDirection=1
ObjectXMin=+135
ObjectXMax=+135
ObjectYMin=0
ObjectYMax=0
ObjectDMin=80
ObjectDMax=80
ObjectAMin=0
ObjectAMax=0
ObjectVXMin=0
ObjectVXMax=0
ObjectVYMin=0
ObjectVYMax=0
ObjectVRotMin=0
ObjectVRotMax=0
ObjectRotAxis=3
ObjectVGrowMin=0
ObjectVGrowMax=0
ObjectGravMin=0
ObjectGravMax=0
ObjectMoveXMin=-1000
ObjectMoveXMax=+1000
ObjectMoveYMin=-1000
ObjectMoveYMax=+1000
ObjectMoveAMin=-360
ObjectMoveAMax=+360
ObjectMoveRMin=1
ObjectMoveRMax=1000
ObjectMoveType=3
ObjectType=1
ObjectBenefitMin=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectBenefitMax=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectMirror=0
ObjectMovePointing=0
ObjectHitSound=
ObjectAppearSound=
ObjectHitTextEnglish=
ObjectHitTextGerman=

Note that the coordinates given for the banner are no longer relative to the middle of the playground, but to the middle of the object it is connected with! So the banner is shifted 0 units in the vertical direction and 135 units to the right concerning the odd bird.
When starting the game, the odd bird appears at the right edge of the kitchen and moves to the left. After disappearing at the right edge fore some seconds he starts flying from the left to the right. I'm sure you realized the mirrored scripture of the banner while moving to the right. To avoid this, you have to create a second banner pointing to the right and being connected with the odd bird while flying to the right. Let's ignore the mirrored scripture for this practices...
Alter the speeds (ObjectVXMin/Max, ObjectVMin/Max) of the bird and you will see that the banner is still 'sticking' at the odd bird, even while flying angular up or down.
Everything works fine? Okay so it is time to awake the little housefly again. Egg-O-shOOter allows you to connect further object to a connected object. Let's apply the fly to the banner:

#1#
ObjectNumber=3       #1#Fliege auf Banner / Fly on banner
ObjectFront=1
ObjectStartActive=1
ObjectTexture=11
ObjectF=-1
ObjectD=-1
ObjectSecMin=-1
ObjectSecMax=-1
ObjectConnect=2
ObjectKoordPre=-1
ObjectHitDirection=1
ObjectXMin=+20
ObjectXMax=+20
ObjectYMin=+30
ObjectYMax=+30
ObjectDMin=20
ObjectDMax=20
ObjectAMin=0
ObjectAMax=0
ObjectVXMin=0
ObjectVXMax=0
ObjectVYMin=0
ObjectVYMax=0
ObjectVRotMin=0
ObjectVRotMax=0
ObjectRotAxis=3
ObjectVGrowMin=0
ObjectVGrowMax=0
ObjectGravMin=0
ObjectGravMax=0
ObjectMoveXMin=-100
ObjectMoveXMax=+100
ObjectMoveYMin=-100
ObjectMoveYMax=+100
ObjectMoveAMin=-360
ObjectMoveAMax=+360
ObjectMoveRMin=1
ObjectMoveRMax=1000
ObjectMoveType=3
ObjectType=1
ObjectBenefitMin=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectBenefitMax=*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0
ObjectMirror=0
ObjectMovePointing=0
ObjectHitSound=
ObjectAppearSound=
ObjectHitTextEnglish=
ObjectHitTextGerman=

Therewith the fly is connected to the banner (ObjectConnect=2) and the banner is connected to the odd bird (ObjectConnect=1). All three objects are flying concerted through the kitchen.
Let the fly beat it's wings by setting ObjectTexture=11/80,12/30 and set the speeds like down below:

ObjectVXMin=50
ObjectVXMax=100
ObjectVYMin=50
ObjectVYMax=100

Now the fly is flying around the banner. If you observed the flight for a little while, you might have realized that the the fly is moving inside a quadrat around the middle of the banner. ObjectMoveXMin/Max and ObjectMoveYMin/Max are also given relative to the connected object.
Screenshot egg-O-shOOter
<<<Back to time events          Continue with object rotation>>>