SRL Archive - OSR Help

How can I add screen rotation to my ODTM walker?


Joseph L

2012-04-24 19:22:20

I want to make it to where the screen moves while it walks, I know how to make it walk and how to make the screen move, but I can't figure out how to do it simultaneously. Thank you for the help! :)

Element17

2012-04-24 19:32:44

I think it has to be facing north to accurate…so this probably wouldn't be a good idea. I could be wrong tho.

Gucci

2012-04-24 19:40:48

SetAngle('E'); or replace the E with N, W, S. Just put it in between walking nodes if your doing the split method with wait in between each node then this will work but if it's all just one path together then this won't work

Joe

2012-04-24 19:41:53

From: 14578
I think it has to be facing north to accurate…so this probably wouldn't be a good idea. I could be wrong tho.


Yeah at the beginning of the ODTM process it clicks north but if you really wanted to just make the path node then say Changecompass'W'… then make the next one. tedious but its what you want

euphemism

2012-04-25 00:02:02

From: 14578
I think it has to be facing north to accurate…so this probably wouldn't be a good idea. I could be wrong tho.


Initially this was not the case, but a while back Jagex messed with the compass image and our angle-grabbing code is unable to get an accurate read on it so rotation support is iffy. As a general rule it is best to have it north, or at a 90 degree permutation.

From: JOEbot
Yeah at the beginning of the ODTM process it clicks north but if you really wanted to just make the path node then say Changecompass'W'… then make the next one. tedious but its what you want


No, that's SPS' walking.

Joseph L

2012-04-25 09:04:55

Well how can I make two task run at the same time?
Example: Have a task that rotates my screen and a task that clicks something run at the same time.

ReadySteadyGo

2012-04-25 09:34:32

From: Joseph L
Well how can I make two task run at the same time?
Example: Have a task that rotates my screen and a task that clicks something run at the same time.


You can make your own FFlag procedure that can do the task (rotating), then wait for flag after.

putonajonny

2012-04-25 15:01:50

From: beginner5
If you want do this you have to modify ODTM include.


Easier just to copy the procedure over to your script and give it a different name

Abu

2012-04-27 01:00:14

Instead of using ObjDTM_WalkPath use ObjDTM_Walk and set the Flag Distance to around 10-15. This way it will result true before it has finished walking and then you can carry on with your next procedure/function while you are walking, which in this case would be MakeCompass();