I don´t know if this is known or if it could be usefull to someone. You
can cheat your sprites. I tried the following script and it is very
amusing to me. It beeps on mouseEnter.
on beginSprite me
mySprite = sprite(me.spritenum)
end beginSprite me
on mouseEnter me
sendSprite(mySprite,
:43 AM +0200 6/27/01, schmidt-r wrote:
i have two vector-sprites, three bitmap-sprites and one flash-member.
altogether they build an angle-measuring-tool which i can drag around
on
the stage. that works fine until the moment i set my 1-bit-grid to
visible. The grid is in the background
why don´t you set the location of the sprites? Do you need to change the
size, too?
on mouseDown
sprite(3).loc = sprite(2).loc
end
Ralf.
When I click on sprite(2) then sprite(3) moves to sprite(2) using this
code
sprite(3).rect sprite(2).rect
That works fine, except that sprite(3) quickly
I made an animated cursor. (Insert / Media Element / Cursor...)
The cursor flickers badly. And when I move the mouse very fast,
the lower part of the cursor disappears.
Can this be improved?
Ralf.
[To remove yourself from this list, or to change to digest mode, go to
Hi Anna.
attach this behavior to sprite 3:
-- mySprite means sprite(3)
property mySprite
on mouseDown me
mySprite = sprite(me.spriteNum)
mySprite.loc = sprite(2).loc
end
When you have problems like this, it is a good idea to make a new movie
and test the new script.
Then go back to your
Fonts on Win and Mac almost never look the same. This is not only
in Director. Have you checked the fonts on both platforms in any
other program?
There are ways to manipulate the fonts and the spacing in
Macromedia Fontographer. But this is complicated. You could also
generate a Win-font on the
Hi Pytkin.
I have never had a crash when selecting or embedding a font.
The problem with the national characters certainly is no Director
problem.
If the national characters work fine in any other program (MS-word for
example)
but not in Director, write your text in the other program, then copy
Is it possible to drag a sprite and then when you release the mouse the
sprite will return to its original position?
I know how to drag them but not return it to the position.
if you want to move it back (step by step),
you could use this behavior for the sprite.
property mySprite
property
Is it possible to embed bitmap fonts?
I want to embed a bitmap font called Rosie. It is a very cool font
(designed by Sean Cavanaugh as a replacement for Geneva).
You can download it at:
http://www.mvd.com/seanc/dlfonts1.htm
The font is installed in the system. but when i choose Insert / Media
Thanks for your help Bruce.
Brad Carroll sent me the formula.
the pendulum is swinging now:
on animateMe
angle = angleStart * sin(2*pi*f*t)
x = cordLength * sin(angle) + centerH
y = cordLength * cos(angle) + centerV
newPoss = point(x, y)
mySprite.loc = newPoss
end animateMe
f is the
This is a non-lingo question:
I want to make a pendulum. the motion should involve
physical principles. It should be possible to change
the lenght of the cord for example. If somebody did this
before, please help me with the formula.
i tried:
T = 2*pi *sqrt(cordLength/g)
but how do i get the
with globals in that script, but not that you'd probably notice unless
you
had hundreds or thousands. Otherwise, there is no speed factor per
se...
How are you using them and what makes you think they're slow? How
you're
using them might make a difference.
At 04:11 PM 6/1/01 +0200, schmidt-r wrote:
i have
i have several behaviors which use the same properties.
these properties do not change. so i could make globals
out of them. when i do, i get the impression that the
speed slows down.
are globals really slower than properties?
[To remove yourself from this list, or to change to digest mode, go
Hi Everyone.
What is the easiest way to calculate an angle?
I have three sprites on the stage. The first even (through mySprite and
A_Sprite)
and the second even (through mySprite and B_Sprite) form an angle at
mySprite.
I want to calculate that angle in degrees. The point of origin is on the
14 matches
Mail list logo