Information for the Creators
I begin the construction with sliders. In the screen there is slider tool. I put 2 sliders to the screen and then I changed its properties. In order to see and examine properties of tool you need to open setting tool by right clicking. For the first slider: Settings → Slider; position is horizontal. I input -10 for minimum value and +10 for maximum value and 1 for rising. Settings → Base; I change the name as m. Settings → Color; I change the color as claret red. I implement the same process for the second slider: Settings → Slider; position is vertical. I input -10 for minimum value and +10 for maximum value and 1 for rising. Settings → Base; I change the name as n. Settings → Color; I change the color as claret red. I will use sliders to move point B on x and y axis.
I write a code ‘Rastgele(-10,10)’ in the introduction part. I construct a point ‘a’. I apply the same process to construct the point ‘b’. I define the point ‘A’ whose ordered pair is (a,b). When I click right and settings, I write it in the definition part. I put a button which title is ‘Ye!!’ on the screen. I use the GeoGebra script and I entry ‘ B=(0+m,0+n), a=Rastgele(-10,10), b=Rastgele(-10,10), m=0,n=0’. I put a point on the screen whose name is ‘B’ and definition is (0+m,0+n). When I click on the button ‘Yee!!’ point B will go to the origin and point A will identify a random place in ten to ten coordinate system.
I write a text ‘Afiyet Olsun’ and I click right and choose settings and advanced part. I entry A=?B in the condition of showing object part. I design color in ‘Color Part’ and change claret red. I entry a text ‘gittiniz’. I choose claret red in ‘Color Part’. I entry ‘A=?B’ in the condition of showing object in advanced part.The texts ‘Afiyet olsun’ and ‘gittiniz’ will appear when point B overlapped with point A. those are constant texts and it does not depends on the value of ‘m’ or ‘n’.
I write a text ‘abs(m) birim sola’. I choose blue color. I entry ‘m<0 and A=?B’ in the condition of showing object bar in advanced part. I write a text ‘abs(m) birim sağa’. I choose blue color. I entry ‘m>0 and A=?B in the condition of showing object bar in advanced part. I write a text ‘abs(n) birim yukarı’. I choose blue color. I entry ‘n>0 and A=?B’ in the condition of showing object bar in advanced part. I write a text ‘abs(n) birim aşağı’. I choose the blue color. I entry ‘n<0 and A=?B’ in the condition of showing object bar in advanced part. The texts ‘m birim sağa’, ‘n birim yukarı’, ‘n birim aşağı’, ‘m birim sola’ will appear as the codes matched up with commands that I give. numbers before those text will change dependently ‘m’ and ‘n’.
I construct four buttons whose titles are ‘sağa git’, ‘sola git’, ‘aşağı git’ and ‘yukarı git’. I use GeoGebra Script for all. I write m=(m+1) for ‘sağa git’ button, m=(m-1) for ‘sola git’ button, n=(n+1) for ‘yukarı git’ button, and n=(n-1) for ‘aşağı git’ button.
When I click on the buttons it moves according to commend because of that I connected buttons with sliders.
Lastly, I add a picture of ‘Pac-Man’. I click right and settings. I write vertex1 bar ‘(x(B)-0.5,y(B)-0.5)’ and vertex2 bar ‘(x(B)-0.5,y(B)+0.5)’ in order to hold the position of pacman straith. Pacman is connected to point B, which moves where point B goes. After clicking the checkbox next to the text so that you can hide the point B. Thus, only pacman seems like moving.