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

Views: 526

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: 305
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: 474
Comments: 0
Ratings: 1
Date added: 2020/04/06 19:30:01
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: better humvee
Rating: 5
Filesize: 18 kB
Downloads: 407
Comments: 1
Ratings: 1
Date added: 2009/05/11 11:42:54
Made with: Phun
Rating: rated 5
download
Title: car with scripted buttons
Rating: 5
Filesize: 102.89 kB
Downloads: 446
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: 1671
Comments: 1
Ratings: 1
Date added: 2011/07/15 23:24:00
Made with: Algodoo v1.8.5
Rating: rated 5
download
Title: Tank with working gun and MG
Rating: 5
Filesize: 286.22 kB
Downloads: 1044
Comments: 0
Ratings: 1
Date added: 2017/11/02 16:46:30
Made with: Algodoo v2.1.0
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?