Eraser object scripting?

About advanced scenes, and the Thyme scripting language used in Algodoo.

Eraser object scripting?

Postby FruitMonger » Fri Jan 15, 2010 3:01 am

I was thinking about making a saw blade weapon or something, and I was wondering if you could make an object into an eraser. Like the draw tool's right click. Anybody know how to do that? I use Phun, if that makes a difference.
Last edited by FruitMonger on Fri Jan 15, 2010 10:04 pm, edited 1 time in total.
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Eraser object scripting?

Postby standardtoaster » Fri Jan 15, 2010 3:32 am

You cannot easily do this. You could start with an already known object, delete it, then spawn a polygon in its place, and repeat. Although, using that method, you cannot do it with ease.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Eraser object scripting?

Postby Kilinich » Fri Jan 15, 2010 9:46 am

Code: Select all
killer = true

?
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Eraser object scripting?

Postby RicH » Fri Jan 15, 2010 11:56 am

Kilinich wrote:
Code: Select all
killer = true

?

He meant to erase only part of the object(imagine lightsaber), not the whole object itself.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Eraser object scripting?

Postby Kilinich » Fri Jan 15, 2010 12:30 pm

oh well, laser cutter can do that trick
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Eraser object scripting?

Postby RicH » Fri Jan 15, 2010 3:44 pm

Like the brush tool. Not like the cut tool.
Millions of voices suddenly cried out in terror, and were suddenly silenced. Something terrible has happened.
User avatar
RicH
[Funniest Person 2010]
 
Posts: 2043
Joined: Tue Sep 01, 2009 9:01 am

Re: Eraser object scripting?

Postby Kilinich » Fri Jan 15, 2010 4:13 pm

Well then, just paint it over with background color polygons ;-)
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Eraser object scripting?

Postby FruitMonger » Fri Jan 15, 2010 10:06 pm

Rich is right, I want the object to be able to fall and erase right through a block, like if you spam CSG subtract.
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Eraser object scripting?

Postby niffirg1 » Sat Jan 16, 2010 5:27 am

Ah yes i had this idea back in the phunland forums. I gave up and moved on.
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Eraser object scripting?

Postby FruitMonger » Sun Jan 17, 2010 6:45 am

Alright, thanks for your input, guys. If I am going to make a saw blade weapon, I'll have to make a bunch of pieces stuck together as my victim and make the saw a killer.
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Eraser object scripting?

Postby standardtoaster » Sun Jan 17, 2010 6:46 am

Or use breakable hinges.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Eraser object scripting?

Postby FruitMonger » Thu Jan 21, 2010 8:36 pm

Yeah, but that wouldn't be the same as erasing whatever it touches. It'd just get rid of huge chunks.
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana

Re: Eraser object scripting?

Postby davidz40 » Thu Jan 21, 2010 10:48 pm

Killinich is right: laser cutter slightly before the blade and parallel to it + some killer geometry slightly inside the blade to kill small chunks could do very well.
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am

Re: Eraser object scripting?

Postby Cs24 » Fri Jan 22, 2010 12:46 am

Rating: rated 7.4
Filesize: 430.86 kB
Comments: 21
Ratings: 18
download

something like that
Newbie Thymer
Intermediate Phuner
Cs24
 
Posts: 41
Joined: Tue Nov 03, 2009 5:30 am

Re: Eraser object scripting?

Postby FruitMonger » Tue Jan 26, 2010 10:17 pm

Okay, but I don't have algodoo....
Image
User avatar
FruitMonger
 
Posts: 135
Joined: Thu Dec 10, 2009 8:20 pm
Location: Some fruit stand in Indiana


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 10 guests