Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Character Doesnt move to the hot spot  (Read 4581 times)

0 Members and 1 Guest are viewing this topic.

Bazi Resaneh Co.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Character Doesnt move to the hot spot
« on: February 05, 2012, 05:26:24 PM »

Hello!
We are developing out game using .... WME ! :D
As you can see in the pics below our character does not stop when he is moving to a new location, although the hotspot is right between his legs in every direction. i have been trying to fix it for 2 days now. i have deleted and created a new char but the problem remains still. its really bothering? what should i do?? ::slug


Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Character Doesnt move to the hot spot
« Reply #1 on: February 05, 2012, 08:09:20 PM »

please post relevant scripts.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Bazi Resaneh Co.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: Character Doesnt move to the hot spot
« Reply #2 on: February 06, 2012, 11:03:51 AM »

please post relevant scripts.

umm, I have not made any change to the script files. I started a project and Made a new char ( deleted the generic one ). defined the hotspots:

My Scene is set correctly and it only contains a region for walking and a background.  :'(
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Character Doesnt move to the hot spot
« Reply #3 on: February 06, 2012, 11:55:37 PM »

even if you never touched it yourself, there is default scene_init.script, which typically places actor to certain position.

It would seem as if this script moved your character out of defined floor region. So please post relevant script and snap from scene edit so we can see how your floor is defined.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Bazi Resaneh Co.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: Character Doesnt move to the hot spot
« Reply #4 on: February 07, 2012, 12:55:07 PM »

even if you never touched it yourself, there is default scene_init.script, which typically places actor to certain position.

It would seem as if this script moved your character out of defined floor region. So please post relevant script and snap from scene edit so we can see how your floor is defined.

Code: [Select]
/ here comes the stuff which initializes the scene

actor.SkipTo(998, 534);
actor.Direction = DI_DOWNLEFT;
actor.Active = true;


////////////////////////////////////////////////////////////////////////////////
// scene state

i have placed the actor inside the region and he walks fine, the only problem is that the actor does not stop where he should. check photos above. the mouse cursor is where i clicked, the actor's current position is where he stopped walking ( btw the actor does not have standing frame yet and i have used one of the walking's one ):D

Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Character Doesnt move to the hot spot
« Reply #5 on: February 07, 2012, 06:36:43 PM »

Hey there!

We had similiar problems when we forgot to set the "main" layers properties to the same dimensons as the background image. Maybe this can solve your problem. ( e.g. 1280x800 bg image should result in 1280x800 "main" layer properties.

Hope it helps!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Character Doesnt move to the hot spot
« Reply #6 on: February 08, 2012, 08:31:00 AM »

Yeah, Spell made a good point, that's most likely the reason. If your main layer size doesn't match the game resolution, the engine attempts to scroll the layer as the actor moves. If the layer is smaller than the resolution, it will give you these weird results. The solution is to either make the layer the same size, or define a viewport in ProjectMan.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Bazi Resaneh Co.

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 15
    • View Profile
Re: Character Doesnt move to the hot spot
« Reply #7 on: February 08, 2012, 12:07:34 PM »

 ::rock ::rock ::rock ::rock ::rock ::rock ::rock ::rock ::rock ::rock ::rock ::rock
thank you !!!!!
Great Support guys
Logged
 

Page created in 0.034 seconds with 23 queries.