Forum rules - please read before posting.

Character is not reacting to hotspots in new scenes using Movement method: None

edited September 2014 in Technical Q&A
This is a reply to an email correspondence. I will post it below for other ppl to see.

The issue is that when I'm using Movement method: None and changing the scene, my character no longer reacts to hotspots at all!

Here's some more info and a description of the test I ran:
During the game the cursor shows fine, hotspot labels appear in the new scene, and the blue path-line shows when I press them. However, the character is stuck in place and doesn not move in the new scene at all. This occurs in editor mode and in built games.

This is what I did to thoroughly check the issue:
I created a new scene (moving & turning: Unity 2D, pathfinding method: polygon, movement method: none), created a hotspot with an interaction and action to change a scene to a new scene which is an exact replica. The same problem occurs and the character does not move in the new scene**
** When I play the new scene solely, it moves perfectly! This only seems to happen after the change scene method is called.

Also, I tried integrating my own script with Application.LoadLevel - the same exact scenario - character isn't moving.

I tried your debug options:
    1) Select the PersistentEngine object, and note the StateHandler
script's Game State variable - it should be set as Normal during
gameplay

        2) Select the GameEngine object, and check "Show Active Action
Lists" in the Action List Manager script - it will list any
currently-running ActionLists, which may tell you if the game is in a
Cutscene or not

1) It is on Normal during game
2) No ActionLists are active...

When I change the movement methid to ANYTHING else, the everything works perfectly.

The problem is that I really need to work in the None movement method :(

Please help...

Thanks.

*****

Here's our latest correspondence:
> 1. I want my character to only be able to move to
certain spots in my scene, so I used the None mode instead of the Point n
Click mode. It works great that way! The issue is that when I change to
my second scene, my character stops reacting to the hotspots and it's
stuck in place :(

> When playing my 2nd scene only, it works perfectly.

> Also, when I switch to Point n Click mode, everything works great,
also when playing the whole game and after changing scenes!

> So the issue only happens when I'm in None mode and after changing a scene inside the game.

> Suggestions?



I can't recreate this issue based on this information alone - a
simple test on my end saw transitioning with None movement work fine. 
What is the state of the game during the error, exactly - does the
cursor show, do Hotspot labels appear, etc?  Does this problem occur
in-editor, or only in built games?



A couple of debug things to check when the problem occurs:

        1) Select the PersistentEngine object, and note the StateHandler
script's Game State variable - it should be set as Normal during
gameplay

        2) Select the GameEngine object, and check "Show Active Action
Lists" in the Action List Manager script - it will list any
currently-running ActionLists, which may tell you if the game is in a
Cutscene or not



Let me know the result of these, plus any screenshots that might be
useful.  Please post these in the forum thread, rather than as a reply
to this email, because it may help anyone else having a similar issue in
the future.  I do cover all issues on the forum.




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.