This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-09-16 14:35:45

Oathbreaker
Scratcher
Registered: 2009-09-16
Posts: 4

Duplicate objects

Im making a platform game, and need to create more than 1 of each object. Ive tried duplicating it, but it gets named something differant. This means i cant check for collisions between that and the character without having a script for each platform and object. And there will be a lot of platforms.

Offline

 

#2 2009-09-16 14:49:26

Ssbrawl700
Scratcher
Registered: 2009-02-11
Posts: 100+

Re: Duplicate objects

Well maybe you can have platforms change coustumes and be a differnt platform when out of range. That way you won't have to make so many scripts


Can you beat the ever-so challenging Keyboard Khaos?

Offline

 

#3 2009-09-16 14:50:45

Oathbreaker
Scratcher
Registered: 2009-09-16
Posts: 4

Re: Duplicate objects

So no way of using one object for all the platforms then?

Offline

 

#4 2009-09-16 14:58:08

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Duplicate objects

Oathbreaker wrote:

So no way of using one object for all the platforms then?

Not really...you could use color sensing, if you don't mind standardizing on a platform color.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2009-09-16 15:43:18

Oathbreaker
Scratcher
Registered: 2009-09-16
Posts: 4

Re: Duplicate objects

could be a good idea. Also, how would i make a view so that you cant see all of the objects, and the character is in the centre? Ive tried scrolling, but that doesnt work well, because i need to make it replace the platform, which causes a lot of issues.

Offline

 

#6 2009-09-16 15:46:19

Oathbreaker
Scratcher
Registered: 2009-09-16
Posts: 4

Re: Duplicate objects

Also, another question: How do i make it so that only if the bottom of my character can collide with the platform and stop him so that he doesnt stop if his head hits it, or is that not possible?

Offline

 

Board footer