Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-03-01 09:56:05

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Bot Question] Movement

How can I make my bot move around and teleport?

I've tried sending a location through "m" but it doesn't seem to work, can anyone help?


signature.png

Offline

#2 2015-03-01 10:11:11

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: [Bot Question] Movement

#m Player Moves
[0]  ‹int› User ID
[1]  ‹double› Player X
[2]  ‹double› Player Y
[3]  ‹double› Speed X
[4]  ‹double› Speed Y
[5]  ‹int› Modifier X
[6]  ‹int› Modifier Y
[7]  ‹int› Horizontal
[8]  ‹int› Vertical
[9]  ‹int› Coins
[10] ‹bool› Purple
[11] ‹bool› Has Levitation


Ug3JzgO.png

Offline

#3 2015-03-01 10:18:40

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Bot Question] Movement

I know all of that, but every time I try to make my bot go somewhere it does nothing.


signature.png

Offline

#4 2015-03-01 10:20:30, last edited by goeyfun (2015-03-01 10:21:17)

goeyfun
Member
From: Mighty Japan
Joined: 2015-02-18
Posts: 667

Re: [Bot Question] Movement

but actually u shall use this, that was a (message we receive)
This is what u shall wrote Connection.Send("m", X, Y, SX, SY, MX, MY, H, V, GM, SD);
[0]  ‹string› "m"
[1]  ‹double› Player X
[2]  ‹double› Player Y
[3]  ‹double› Speed X
[4]  ‹double› Speed Y
[5]  ‹int› Modifier X
[6]  ‹int› Modifier Y
[7]  ‹int› Horizontal
[8]  ‹int› Vertical
[9]  ‹int› GravityMultiplier (Normal world = 1)
[10] ‹bool› SpaceDown
For most movements (int X, Y): Connection.Send("m", X * 16, Y * 16, 0, 0, 0, 0, 0, 0, 1, true);  // <-- your code shall use this


Ug3JzgO.png

Offline

#5 2015-03-01 10:27:23

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Bot Question] Movement

Well, there is my problem. I forgot I had to put * 16 for the Player X/Y
Thank you, goey.


signature.png

Offline

ParadoxInTheVoid1425202043478020

Board footer

Powered by FluxBB

[ Started around 1715039414.4861 - Generated in 0.035 seconds, 10 queries executed - Memory usage: 1.4 MiB (Peak: 1.51 MiB) ]