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: 373

Views: 306

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: Multi Stage Rocket with Warhead
Rating: 5
Filesize: 33.22 kB
Downloads: 966
Comments: 0
Ratings: 1
Date added: 2009/09/16 14:52:30
Made with: Phun
Rating: rated 5
download
Title: Eikka's Four Stage Rocket
Rating: 7.8276
Filesize: 422.26 kB
Downloads: 1058
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: 385
Comments: 0
Ratings: 1
Date added: 2017/11/25 16:20:04
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Phun Tech Missile 2
Rating: 7.9091
Filesize: 0.73 MB
Downloads: 383
Comments: 3
Ratings: 11
Date added: 2008/08/17 23:08:29
Made with: Phun
no image found for this scene
Rating: rated 7.9
download
Title: rokcet bfr
Rating: 5
Filesize: 197.88 kB
Downloads: 202
Comments: 1
Ratings: 1
Date added: 2022/12/26 17:29:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Space Center
Rating: 5
Filesize: 63.08 kB
Downloads: 3167
Comments: 0
Ratings: 1
Date added: 2014/09/18 00:32:12
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) 265 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: 272
Comments: 3
Ratings: 1
Date added: 2014/08/04 23:36:54
Made with: Algodoo v2.1.0
Rating: rated 5
download