Results 1 to 2 of 2

Thread: How to forbid map to "play"

  1. #1
    Knight
    Join Date
    Mar 2010
    Posts
    81

    Default How to forbid map to "play"

    I have a object pallete map...

    But all the time that I go there, my paddle move around, balls shoot, stuff die...

    How I stop that behavior?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Hmm, nothing should be moving if the game is paused when the editor opens which is the default I think.

    But this should work:

    In your initialization of your paddle you can check to see if the editor is up before having it do anything.

    For instance:

    function OnInit()

    if (g_editorActive) then
    LogMsg("Oh sh*t! Don't turn this on now.");
    return;
    end


    ...


    Or: You can also use GameIsActive(), but that just detects if a 'profile' is loaded, not applicable if you don't use them.

    Or: You could also check the current map by name, and if it's Game Palette or whatever exit.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Pilgrimís Quest: Problem in "Welcome to Fire woods!"
    By Floater in forum Dink Smallwood HD
    Replies: 0
    Last Post: 08-18-2009, 06:07 PM
  2. Multiple "keydown" signals on a single keystroke
    By zag in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-19-2008, 11:04 PM
  3. Coppying "skeleton" wont work (MAC)
    By Suudsu2200 in forum Novashell Game Creation System
    Replies: 1
    Last Post: 03-04-2007, 08:24 PM
  4. undo on "replace selected" only does one at a time
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 11-25-2006, 05:41 AM
  5. Di-Mart Guns -Explanation of the "Store Guy" event
    By rmcnew in forum Funeral Quest
    Replies: 2
    Last Post: 01-15-2004, 06:25 AM

Bookmarks

Bookmarks

Posting Permissions

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