Posted By
|
Message
|
stuff2
Registered 16/05/2010
Points 7
|
20th July, 2010 at 00:45:45 -
I've set a counter that adds 1 every time I click the left mouse button.
When the counter equals 5 I wanted an animation to play.
I've got my active object, with the animation I want on 'appearing', set up beside the play area.
Now when the counter reaches 5, it does create my animation (3 frames), but it ghosts the frames.
What did I do wrong?
n/a
|
Silveraura God's God
Registered 08/08/2002
Points 6747
|
20th July, 2010 at 06:09:30 -
Elaborate what you define as "ghosting" because that terminology could mean a few things in electronics. The one I'm thinking of could refer to an LCD monitors pixels not updating fast enough causing a faint nearly impossible to see 'ghost' of a prior image.. most noticeable in very fast games or fast animations as objects generally do a lot more in between frames causing a much larger ghost image.
Could this be your problem, perhaps? If you have a CRT monitor, this is not the problem as this doesn't plague CRT monitors, however if you have an older LCD monitor, it's very possible. Do you happen to know the speed of your monitor (usually the only specification for your monitor that is measured in times of milliseconds.)
http://www.facebook.com/truediamondgame
|
stuff2
Registered 16/05/2010
Points 7
|
20th July, 2010 at 11:01:41 -
The ghosting is very viewable I'm still learning mmf2 so it's quite possible I overlooked the obvious (again).
I've uploaded a test mfa file.
http://hotfile.com/dl/56299723/eb43b52/test.mfa.html
n/a
|
lembi2001
Registered 01/04/2005
Points 608
|
20th July, 2010 at 11:15:47 -
It's not ghosting it, it is constantly creating it. the event you have used - counter = 5 create object - is always fired as the counter is always equal to 5. you need to edit your events so that the counter value changes or you cahnge a flag status.
change your create event like this.
counter=5
create object
add 1 to counter
that will fix it.
n/a
|
stuff2
Registered 16/05/2010
Points 7
|
20th July, 2010 at 16:38:59 -
That does the trick indeed. Big thank you to both of you
n/a
|
-MacAdaM- Megaman Fosho
Registered 12/02/2008
Points 560
|
20th July, 2010 at 18:23:30 -
Couldn't you also have put the event 'Only run once when event loops'?
Your just jealous that you're not as awesome as me.
(And my megaman avatar )
|
lembi2001
Registered 01/04/2005
Points 608
|
20th July, 2010 at 19:54:27 -
you could yes, never even thought of that!!!
n/a
|
-MacAdaM- Megaman Fosho
Registered 12/02/2008
Points 560
|
21st July, 2010 at 05:42:01 -
woot!
Your just jealous that you're not as awesome as me.
(And my megaman avatar )
|
stuff2
Registered 16/05/2010
Points 7
|
21st July, 2010 at 11:25:22 -
Works like a charm. Thank you
n/a
|
|
|