Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Actor won't move  (Read 3456 times)

0 Members and 1 Guest are viewing this topic.

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Actor won't move
« on: April 13, 2008, 02:03:24 PM »

Hello everybody,

I need an actor to walk around in a circle for a while. I wrote a script that calculates the circle and culminates in an actor.GoTo(x,y); and attached it to a node so I can start the motion at will. To test the algorithm I used Molly, and she more or less did what I thought I'd told her to do :-)

Then I replaced Molly with a single .png and to be sure, I changed all the references in the .actor animations to refer to the same graphic. I changed the LoadActor in Game.script.

But when I click the node, my .png moves slightly and stops. It simply does not behave the same as Molly.

Everything in the two .actor files is identical except for the animation references to my single PNG instead of Molly's sprites. But Molly moves and my PNG doesn't. My .PNG is about 20% physically smaller than Molly.

Any ideas?

Thanks,

Kaz
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Actor won't move
« Reply #1 on: April 13, 2008, 03:48:08 PM »

can't it be that it walks out of the floor region?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: Actor won't move
« Reply #2 on: April 14, 2008, 07:39:35 AM »

I doubt it, because it doesn't move at at all, so it can't get to the edge of the floor. In any case, given the same instructions, Molly moves. It's just that my single .png doesn't.
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Actor won't move
« Reply #3 on: April 14, 2008, 07:58:58 AM »

It's because the actor sprites contain the "move X" / "move Y" values for sprite frames, which actually define the walking speed. You'll need to create those sprites for your simple actor, at least one-frame sprite for each direction with the appropriate move X/Y values.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Kaz

  • Arberth Studios
  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 228
  • The story is the game
    • View Profile
    • Info on 'Rhiannon' & 'Coven'
Re: Actor won't move
« Reply #4 on: April 14, 2008, 01:58:49 PM »

Cheers Mnemonic. If I understand you correctly, the 'Move By' parameters in the Sprite are part of the movement called upon by the actor.GoTo method to do the movement. So if it's a single .PNG perhaps an actor.SkipTo would be better?

 
Logged
\"Fans of popular horror adventures like Scratches and Barrow Hill should start bracing themselves for another haunting experience, as independent developer Arberth Studios has announced production on its debut title Rhiannon - Curse of the Four Branches.\" - AdventureGamers.com

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Actor won't move
« Reply #5 on: April 14, 2008, 02:56:53 PM »

Yup, for strictly circular movement without animations SkipTo() should be enough.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.019 seconds with 18 queries.