Browse Search Popular Register Upload Rules User list Login:
Search:
XY Stage V2

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 20.53 kB

Date added: 2014-08-04

Rating: 5

Downloads: 468

Views: 548

Comments: 0

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Just for the fun of it, I converted s_noonan's XY Stage scene from controlling its position with the arrow keys to controlling its position with your mouse clicks.

But there's an expected problem. When a desired "go to" point is clicked, the yellow position indicator will begin moving in a straight line approximately toward the desired point, but then will sometimes abruptly change coarse and finish by going exactly to the desired destination. (Play with it for a while and you will understand what I'm talking about).

What's happening is this:
When the yellow position indicator starts out on its journey toward the desired destination, both x and y axes move at exactly the same rate. Therefore, either the x or y axis will sometimes reach its destination coordinate BEFORE the other axis reaches its destination coordinate. Because of that, the axis that reached its destination first must stop moving, and then the other axis will continue moving until it reaches its final coordinate. This problem causes TWO short straight line segments along its travel rather than ONE continuous long straight line.

Your challenge: Now that you know why this happens, your challenge is to add the required code that will prevent two line segments from being drawn. Each move to a new desired location should always be drawn with just ONE straight line. Make your scene a response to this scene. The winner will not win any prize except for the pride in being able to solve this software engineering problem.

This challenge is for anyone with Thyme script programming experience.

Sorry for my rambling, but that's just me! :lol:
Last edited at 2014/08/04 05:07:25 by Xray
Please log in to rate this scene
edit
Similar scenes
Title: The Ultimate Marble Race
Rating: 6.1111
Filesize: 263.85 kB
Downloads: 9245
Comments: 3
Ratings: 3
Date added: 2013/08/31 22:29:54
Made with: Algodoo v2.0.2 Edu
Rating: rated 6.1
download
Title: Eikka's Four Stage Rocket
Rating: 7.8276
Filesize: 422.26 kB
Downloads: 1194
Comments: 6
Ratings: 29
Date added: 2008/09/17 17:20:03
Made with: Phun
Rating: rated 7.8
download
Title: Three stages rocket
Rating: 5
Filesize: 63.3 kB
Downloads: 502
Comments: 0
Ratings: 1
Date added: 2017/11/25 16:20:04
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Algohexathlon Day 6
Rating: 5
Filesize: 27.79 kB
Downloads: 270
Comments: 3
Ratings: 1
Date added: 2025/08/01 17:02:33
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: MEGA MARBLE RACE
Rating: 5
Filesize: 71.7 kB
Downloads: 2907
Comments: 2
Ratings: 1
Date added: 2021/10/14 19:46:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: 4 Stage rocket game
Rating: 5
Filesize: 68.53 kB
Downloads: 499
Comments: 0
Ratings: 1
Date added: 2017/12/15 03:57:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
XY Stage s_noonan 5 (1 vote) 336 5 2014/08/02 14:28:21
show grid
Responses to this scene
show list
Title: XY Stage V3
Rating: 5
Filesize: 38.27 kB
Downloads: 344
Comments: 3
Ratings: 1
Date added: 2014/08/04 23:36:54
Made with: Algodoo v2.1.0
Rating: rated 5
download