Results 1 to 7 of 7

Thread: Character Stuck Between Objects

  1. #1
    Join Date
    Jun 2012
    Posts
    219
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Character Stuck Between Objects

    Hey

    If my character is stuck between objects and I only want to move it along the y axis and click on the main screen so that it can move to that location, how do I do that?

    This is what I Have But it is not working.

    Simba Code:
    Procedure Test;
    var
    x ,y: Integer;
    Begin
      WriteLn('Test');
      GetMousePos(x,y);
      Mouse(x , (y + 300), 5, 5,True);  // Make fire at another location
      Wait(RandomRange(850, 1000));
    End;

  2. #2
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    How do you mean stuck between two objects? What is it you are trying to get your character to do in full?

  3. #3
    Join Date
    Jun 2012
    Posts
    219
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It burns logs, and sometimes when burning the logs it gets jammed against a tree and then it turns around but cant create a fire because there is a existing fire where it wants to start the new one, so all I want to do it to move it a few pixels on the y axis, I think that would be all I need so that it can continue with the burning process from where it waits for the AveragePixelShift to reach a certain criteria before it continues with the loop. Otherwise it stands there until the fire burns out before continuing with the burning.

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Why are u still lighting logs in the conventional way when there is bonfire?

    Also GetMousePos will get ur mouse position when it is called, which may not be at your character (it may be at ur inventory etc). Wouldn't ur character always be at MSCX,MSCY?
    U will also need to ensure ur camera is perfectly north and the path is straight in order for this to work. Why not just let it run to ur original starting point and light from there?

  5. #5
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Yea, if you are going to stick with conventional fire burning (which I don't recommend given how much easier bonfire is) I would create a function that walks via minimap back to where you started

  6. #6
    Join Date
    Jun 2012
    Posts
    219
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ok,Then I would rather switch to bonfires, much easier and less complicated as well. Thanks guys. O just one more thing. If I create bonfires, will there still be ash to pick up or will I lose some ash? Just a thought about ash.

  7. #7
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    iirc there will only be 1 ash/bonfire (after it runs out), but collecting ash is not good money anyway so why bother?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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