Results 1 to 2 of 2

Thread: SetLayerByName only goes through half the time...

  1. #1

    Default SetLayerByName only goes through half the time...

    I'm making a turn based system, so it's VERY important to move things-- such as the command selector-- on top of other things.

    I use an entity called "Command" selector to go through things such as "Fight", "Magic," etc.

    Code:
    function OnPostInit() //run during the entity's first logic update
    	GetInputManager:AddBinding("down", "OnDown", this:GetID());
    	GetInputManager:AddBinding("up", "OnUp", this:GetID());
    	GetInputManager:AddBinding("return", "OnEnter", this:GetID());
    	
    	this:SetLayerByName("GUI 3");
    end
    For some reason, the SetLayerByName works on the first party member but not the second (even though it's the same entity script). Are there only specific conditions that SetLayerByName() works?

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

    Default

    Quote Originally Posted by wettechsupport View Post
    I'm making a turn based system, so it's VERY important to move things-- such as the command selector-- on top of other things.

    I use an entity called "Command" selector to go through things such as "Fight", "Magic," etc.

    Code:
    function OnPostInit() //run during the entity's first logic update
    	GetInputManager:AddBinding("down", "OnDown", this:GetID());
    	GetInputManager:AddBinding("up", "OnUp", this:GetID());
    	GetInputManager:AddBinding("return", "OnEnter", this:GetID());
    	
    	this:SetLayerByName("GUI 3");
    end
    For some reason, the SetLayerByName works on the first party member but not the second (even though it's the same entity script). Are there only specific conditions that SetLayerByName() works?
    Hmm, no, it should work all the time. One idea is search all the examples for "SetLayerByName" and see if they use it any differently or if you can get them to show the same bug.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Game cycle time
    By Ockonal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-30-2010, 08:15 AM
  2. dinky demensions - the end of time.
    By feathers in forum Dink Smallwood HD
    Replies: 1
    Last Post: 05-27-2007, 05:22 PM
  3. Long time
    By in forum RTsoft Tavern
    Replies: 0
    Last Post: 11-21-2005, 06:10 AM
  4. How much time for licence
    By in forum RTsoft Tavern
    Replies: 1
    Last Post: 06-03-2004, 11:08 PM
  5. Server Time
    By in forum Funeral Quest
    Replies: 2
    Last Post: 04-02-2003, 12:07 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
  •