fasiy / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

window.move(x,y,time) broken/not implemented #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Taking a basic start (Rokon Donate), set up a window, then try to move the 
window x,y to 2,2 over 500 ticks using window.move(2,2,500);
2. Getting the window x,y, co-ords from a keypress with  
Debug.print("window x,y=" + window.x + "," + window.y); shows that the window 
x,y have not changed.

What is the expected output?
Expect the window to move smoothly to the x,y, co-ords in the specified time.

What do you see instead?
No movement of the window at all.

What version of Rokon are you using?
Latest-ish trunk (342)

On which version of Android are you experiencing this?
2.1 update

Please provide any additional information below.
window.setXY() works fine.

Original issue reported on code.google.com by paul.law...@gmail.com on 5 Jul 2010 at 12:22

GoogleCodeExporter commented 8 years ago
You are using Scene.setWindow, aren't you?

Original comment by rtaylor205@gmail.com on 5 Jul 2010 at 3:08

GoogleCodeExporter commented 8 years ago
Yes, the code inside my scene is:

window = new Window(0,0,8,10);
Debug.print("START window x,y=" + window.x + "," + window.y);
this.setWindow(window);
createWalls();  // add some walls
createPlatforms(); // add some platforms
window.move(2,2,500);

Original comment by paul.law...@gmail.com on 5 Jul 2010 at 3:58

GoogleCodeExporter commented 8 years ago
I see the problem, silly mistake.

Something that got automatically changed once (you should never use Find + 
Replace!)

Thanks paul :)

Original comment by rtaylor205@gmail.com on 5 Jul 2010 at 6:50