The Daily Click ::. Forums ::. Klik Coding Help ::. Event lag in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
7th November, 2008 at 03:34:04 -

I was busy working on Version 1.1 of my Signature Creator, and I got everything working, except, well... everything. The signature is visible to the person using the application by use of a sub-application, so global values and global strings have to be used as the bridge for the other frame to interpret the making of the signature. It used to be determined the way my old one was, where pressing each button and changing each option changed a global string or value and then pressing one final button would change Global Value Z to 1. When Global Value Z equaled one, everything on the signature would change based on the option choices. But for some reason, with all the new features or whatever, everything lags behind by one option choice. Some other options won't even activate. I can't get outlines to be visible, only the shading on the inside. Here is a list of what does and does not work, and how it is set:

Works
-Text
-Background gradients (only work when a global string is changed)

Doesn't work
-Active pictures
Background Yes="y" - Reappear, New picture: Background picture, Set Semitransparency ratio to Background Transparency

-Outlines
Outline Number = - Reappear, animation sequence to Normal, Change RGB at 0,0 to Outline Color, Reappear

-Lighting
Lighting Number = - Set semi-transparency to Lighting Intensity, set direction to

-Patterns
Pattern Number = - Set semi-transparency to Pattern Transparency, Change RGB at to Pattern Color, Change animation, force animation frame, reappear


Things like Pattern Color refer to values, and things like Yes are strings. Can anyone help me? Need more information? I don't want to give out the source...

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
7th November, 2008 at 06:58:52 -

It is hard for us to see without the actual code but I think I might have a rough idea of what is happening. I think the most likely cause is parts of the code being run twice when you don't intend them to. This is where the order of conditions is important.

To illustrate I'll use an example. Say you wanted to create a game where a character's actions were based upon an alterable value (I'll call it "Status"). And you utilised this code:

Upon pressing "Enter" & Status = 0
Set Status to 1

If status = 1
then run
+ set status to 2

If status = 2
then jump
+ set status to 0

If status = 2
then add 10 to score
+ set status to 0

If you swapped the order of the last two events so it read:
If status = 2
then add 10 to score
+ set status to 0

If status = 2
then jump
+ set status to 0

Then the game would run very differently. In the first example the player would never get score, and in the second example the player would never jump. Something similiar is probably happening with your games. You may be setting the Global values and then checking them or setting them at times when it will cause the following or previous events to not run as expected. Make sure your events are in the right order and check for any events that are dependent on those values.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click