Browse Search Popular Register Upload Rules User list Login:
Search:
Example For Pootis-Man

Image:
screenshot of the scene

Author: Xray

Group: Default

Filesize: 10.14 kB

Date added: 2017-06-14

Rating: 5

Downloads: 348

Views: 299

Comments: 6

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

The script for making the circle follow the mouse pointer is in the small blue circle.

Here is the simple script:

vel = [app.mousepos(0) - pos(0), app.mousepos(1) - pos(1)] * 10

You can change how quickly the circle responds to the mouse position by adjusting the value of the multiplier (currently 10).

Hope this is what you wanted!
Please log in to rate this scene
edit
Similar scenes
Title: pootis man's soviet laser shooter without lasers
Rating: 5
Filesize: 510.67 kB
Downloads: 296
Comments: 1
Ratings: 1
Date added: 2016/12/17 11:15:11
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Pootis Chipper #3
Rating: 5
Filesize: 368.48 kB
Downloads: 290
Comments: 5
Ratings: 1
Date added: 2016/12/01 20:13:00
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Pootis-Pattern
Rating: 5
Filesize: 156.46 kB
Downloads: 174
Comments: 3
Ratings: 1
Date added: 2016/05/30 10:04:24
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Pootis Chipper #1
Rating: 4.5
Filesize: 1.83 MB
Downloads: 499
Comments: 8
Ratings: 2
Date added: 2016/11/28 21:58:46
Made with: Algodoo v2.1.0
Rating: rated 4.5
download
Title: HOW TO MAKE A POOTIS!
Rating: 5
Filesize: 35.89 kB
Downloads: 251
Comments: 3
Ratings: 1
Date added: 2016/06/11 04:58:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Kitty Escape! Teaser1
Rating: 5
Filesize: 79.67 kB
Downloads: 575
Comments: 0
Ratings: 1
Date added: 2016/11/06 04:43:50
Made with: Algodoo v2.1.0
Rating: rated 5
download
Ty comrade!
But don't mind if you make the same but follows the target ?
If you say "no" im ok.
Sorry, I do not understand. Are you asking me if YOU can use this in your own scenes? If that is what you are asking, YES! You can use this in your own scenes!
Pootis-Man - Please explain what you are asking. I do not understand your request.

You said, "....make the same but follow the target". WHAT target? Do you want the small circle to follow a target instead of follow the cursor? Please explain.
Last edited at 2017/06/15 17:56:24 by Xray
shorter version:

vel = (app.mousepos - pos) * 10.0

If following object:

in leader object postStep:

scene.my.pos = pos

in follower object postStep:

vel = (scene.my.pos - pos) * 10.0

If you want to select a target by hitting it with a laser:

in laser onLaserHit:

e.geom.postStep = (e)=>{scene.my.pos = pos}
s_noonan - Thanks for your suggestions!