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

Views: 556

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: Trickshot Mania (Algotriacontathlon Day 26)
Rating: 5
Filesize: 61.05 kB
Downloads: 2013
Comments: 2
Ratings: 1
Date added: 2025/03/23 11:44:40
Made with: Algodoo v2.2.3
Rating: rated 5
download
Title: Three stages rocket
Rating: 5
Filesize: 63.3 kB
Downloads: 503
Comments: 0
Ratings: 1
Date added: 2017/11/25 16:20:04
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: MEGA MARBLE RACE
Rating: 5
Filesize: 71.7 kB
Downloads: 2911
Comments: 2
Ratings: 1
Date added: 2021/10/14 19:46:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: 3 stage rocket
Rating: 4.3333
Filesize: 0.81 MB
Downloads: 569
Comments: 3
Ratings: 3
Date added: 2008/11/14 13:45:18
Made with: Phun
Rating: rated 4.3
download
Title: rokcet bfr
Rating: 5
Filesize: 197.88 kB
Downloads: 310
Comments: 1
Ratings: 1
Date added: 2022/12/26 17:29:37
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Two Stage Rocket [No Fuel Control] [Real Fuel]
Rating: 5.625
Filesize: 308.11 kB
Downloads: 2925
Comments: 5
Ratings: 2
Date added: 2015/12/23 11:55:49
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
This scene is a response to:
Title Author Rating Downloads Comments Date added
XY Stage s_noonan 5 (1 vote) 338 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: 346
Comments: 3
Ratings: 1
Date added: 2014/08/04 23:36:54
Made with: Algodoo v2.1.0
Rating: rated 5
download