Qhimm.com Forums

Project forums => Q-Gears => Topic started by: Akari on 2007-12-14 17:15:00

Title: Movement is at work.
Post by: Akari on 2007-12-14 17:15:00
Finish jump and auto move routine. Ladder is on the way. And line triggers.
Small video demonstrates how it is work.
Walkmesh I created myself for test purpose. Action sequence hardcoded for now.

http://www.youtube.com/watch?v=Y6prBHwiv10



Communiti still working: http://community.livejournal.com/q_gears/
Title: Re: Movement is at work.
Post by: Cyberman on 2007-12-14 21:14:40
Interesting looks like you have the 'bubble' zone shown for the entities and are showing scripted movement.
Where is that movement set from? Or is that your own script code?

Looks good!

Cyb
Title: Re: Movement is at work.
Post by: Delacroix on 2007-12-15 01:45:33
Great work man!  :-D
Title: Re: Movement is at work.
Post by: Akari on 2007-12-15 08:54:13
Interesting looks like you have the 'bubble' zone shown for the entities and are showing scripted movement.
Where is that movement set from? Or is that your own script code?

Looks good!

Cyb

For now movement set by this

Code: [Select]
        if (run_circle == 0)
        {
            m_Models[model_id]->SetMove(Ogre::Vector2(100, -100));
            run_circle = 1;
        }
        else if (run_circle == 1)
        {
            m_Models[model_id]->SetMove(Ogre::Vector2(-100, -100));
            run_circle = 2;
        }
        else if (run_circle == 2)
        {
            m_Models[model_id]->SetMove(Ogre::Vector2(-100, 100));
            run_circle = 3;
        }
        else
        {
            m_Models[model_id]->SetMove(Ogre::Vector2(100, 100));
            run_circle = 0;
        }

I haven't start implementing scripting yet.