Browse Search Popular Register Upload Rules User list Login:
Search:
Mildly scripted UFO

Image:
screenshot of the scene

Author: Juicicle

Group: Default

Filesize: 468.27 kB

Date added: 2018-10-23

Rating: 7.3

Downloads: 2927

Views: 525

Comments: 6

Ratings: 13

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

"W" to abduct objects.
Try firing the tractor beam into the mirror or place objects in a
container.

Note: please do not ram the UFO into objects, it kind of breaks it.
I glued the parts together so i have no idea why it happens.

The little black part at the bottom of the UFO is what liquifies objects.
Due to its small size, abducting large objects may be hard. Consider
deleting it and add e.other.liquify to the UFO body's onCollide.

To abduct objects you add in, add
vel = [(app.mousepos(0) - pos(0)) * 5, (app.mousepos(1) - pos(1)) * 1]
to the object's onHitByLaser.
Please log in to rate this scene
edit
Similar scenes
Title: Unrealistic fall
Rating: 5
Filesize: 49.38 kB
Downloads: 303
Comments: 7
Ratings: 1
Date added: 2020/11/21 03:13:39
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Advanced pack 1
Rating: 5
Filesize: 0.55 MB
Downloads: 471
Comments: 0
Ratings: 1
Date added: 2020/04/06 19:30:01
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: car with scripted buttons
Rating: 5
Filesize: 102.89 kB
Downloads: 442
Comments: 1
Ratings: 1
Date added: 2011/01/20 00:27:32
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Laser scripted Scar H + M203
Rating: 5
Filesize: 0.51 MB
Downloads: 1667
Comments: 1
Ratings: 1
Date added: 2011/07/15 23:24:00
Made with: Algodoo v1.8.5
Rating: rated 5
download
Title: EnterNX's Scripted tools! Version 2
Rating: 5
Filesize: 157.66 kB
Downloads: 1176
Comments: 0
Ratings: 1
Date added: 2021/01/03 10:50:51
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: scripted cannon
Rating: 5
Filesize: 38.22 kB
Downloads: 593
Comments: 3
Ratings: 1
Date added: 2009/08/12 16:47:40
Made with: Phun
Rating: rated 5
download
Clever game! Nice job! :tup:
Oh, by the way, it's not necessary to put that script you mentioned above in every object that is added to the scene. You just need to put it in the flying saucer laser, as follows: In the laser Edit Menu "onLaserHit" put this script in there: (e)=>{e.geom.vel = [(app.mousepos(0) - pos(0)) * 3, (app.mousepos(1) - pos(1)) * 5]} You might need to adjust the x and y multipliers from 3 and 5 to some other values. You can play with the values until they feel about right.

FYI: In geometries (such as circles and boxes) you can change the values of variables during a collide using "e.this" or "e.other", but for lasers it's different. During a laser hit, you would use "e.laser" to refer to values in the laser, and "e.geom" to refer to values in the geometry which is being hit by the laser.

Have fun!
Gotta remember to exclude the plane and glued geometries with

e.geom.body != 0 && e.geom+"" != "plane" ? {e.geom.vel = ...} : {}
Thanks Xray, ive been wondering for so long why e.other doesn't work with lasers
Congratz on getting high on the popular page! ^^
There isn’t even a UFO. You tricked me! Can you add the UFO please?