User Tag List

Results 1 to 6 of 6

Thread: Global Variable Problems.

  1. #1
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Global Variable Problems.

    Hi.

    What am i doing wrong? I have created two Global Variables, VSyncOn and VSyncOff, VSyncOff is set to 1 and VSyncOn is set to 0.

    Now, in the event editor i have done the following:

    VSyncOff = 1
    Upon Pressing "v"
    ---> Set VSyncOff To 0
    Set VSyncOn To 1
    String --> Display Next Paragraph

    VSyncOn = 1
    Upon Pressing "v"
    ---> Set VSyncOff To 1
    Set VSyncOn To 0
    String --> Display Previous Paragraph

    Now, when i press V nothing happens.




  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Variable Problems.

    Why do you need two global values? You only need one. "VSynch Mode"

    In the global events have:
    -Upon pressing V: Set VSynch Mode to 1 - VSynch Mode
    -VSynch Mode = 0 & Only one action on event loop: Set V-Synch off
    -VSynch Mode = 1 & Only one action on event loop: Set V-Synch on
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Variable Problems.

    Thank you LB will give it a try.

    Is there away to allow the user to select/deselect DirectX?

    Also, i want to give an option to change from Windows Mode to Full Screen and back again? I have tried but didn't work.

    Many thanks for your help.

    Tony

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Variable Problems.

    In the help files is gives you the commandlines like /MIS to force mchine independant spee, so you could have a launcher application with all the options you want in it, and it just launches your application with the correct command lines.

    In the Frame Object there should be an action to change the fullscreenmode and windowed mode.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Nov 2009
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Variable Problems.

    Thank you LB. In the main game menu i did two options,
    Full Screen or Windows Mode.

    But when i selected from window mode to full screen i also used restart application but the application stayed in window mode.
    Is the only way is to use a launcher?

    Many Thanks for you help.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Variable Problems.

    Why do you need to restart the application?
    Working as fast as I can on Fusion 3

Similar Threads

  1. variable global
    By copperbob in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th February 2012, 08:15 PM
  2. Global variable = alterable variable
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 08:54 PM
  3. Problem with a global variable
    By DisneyBoy in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th February 2011, 12:02 AM
  4. Timer based on Global Variable
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th June 2010, 07:29 PM
  5. Simple Global Variable question
    By slash000 in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 17th November 2008, 03:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •