Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move command not working #64

Open
djbritt opened this issue Jan 24, 2023 · 1 comment
Open

Move command not working #64

djbritt opened this issue Jan 24, 2023 · 1 comment

Comments

@djbritt
Copy link

djbritt commented Jan 24, 2023

I try this

agent.moveTo(500,500);

The character does the move animation, but doesn't move anywhere.

I see that the html element has a width and height set of 128px for both values,
<div class="clippy" style="display: block; width: 128px; height: 128px; background: url(&quot;clippy/agents/Merlin/map.png&quot;) 0px 0px no-repeat; top: 229.5px; left: 224px;"><div style="display: none; width: 128px; height: 128px; background: url(&quot;clippy/agents/Merlin/map.png&quot;) 0px -1152px no-repeat;"><div style="display: none; width: 128px; height: 128px; background: url(&quot;clippy/agents/Merlin/map.png&quot;) no-repeat;"></div></div></div>

I can modify that in clippy.min.js, or even within chrome dev tools.

But when I drag ( width or height for the clippy class) larger than 128px, the agent starts to repeat itself, and show itself duplicated every few hundred pixels.

image

How do I fix this, so I can get the agent to move like it should when I execute the moveTo function?

@Tedmcbur
Copy link

They haven't maintained it in 10 years, html and css have been updated since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants