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

#1 2009-07-07 08:46:33

Dudeson
Scratcher
Registered: 2009-05-07
Posts: 25

ObjectX

Hi all!

i wondered if its possible to make something like this:

instead of using for example:

if touching bla1 or bla2 or bla3 or bla4 or bla5....

using

if touching blaX

so you dont have to set every single sprite...
maybe by using a variable and the new join function?? like: join bla and X
and X has to be an infinite value...

is this possible somehow? cuz i think it would optimize the projects and it wouldnt be a pain to change the settings, because otherwise if you have many object, you would have to change it for every object several times.. and that would take ages in my project!

i hope you understand what i mean!

Offline

 

#2 2009-07-07 16:26:13

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: ObjectX

I think I got it working
http://scratch.mit.edu/projects/bhz/597986

Offline

 

#3 2009-07-07 16:47:58

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: ObjectX

I think that would work well but what if you many sprites?


Flat Out G

Offline

 

#4 2009-07-07 18:17:52

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: ObjectX

program it differently...
but it may be laggy with a lot of em

Offline

 

#5 2009-07-08 10:46:13

Dudeson
Scratcher
Registered: 2009-05-07
Posts: 25

Re: ObjectX

bhz wrote:

program it differently...
but it may be laggy with a lot of em

wow.. and how??

btw, that doesnt work with physics!

Offline

 

#6 2009-07-08 15:56:20

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: ObjectX

Dudeson wrote:

bhz wrote:

program it differently...
but it may be laggy with a lot of em

wow.. and how??

btw, that doesnt work with physics!

true... but do the best you can

Offline

 

#7 2009-07-09 10:54:11

Dudeson
Scratcher
Registered: 2009-05-07
Posts: 25

Re: ObjectX

bhz wrote:

Dudeson wrote:

bhz wrote:

program it differently...
but it may be laggy with a lot of em

wow.. and how??

btw, that doesnt work with physics!

true... but do the best you can

i tried! but its not possible if you have physics wich are colliding with something...
there has to be an from X to Y function in the next version!

Offline

 

#8 2009-07-09 12:12:36

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: ObjectX

but why dont you just do it the simple way? your way would be ruined if you had a lotta sprites. it would be buggy and laggy. why dont you jsut do if touching bla1 or bla2 or whatever?


Flat Out G

Offline

 

#9 2009-07-09 18:11:52

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: ObjectX

pinochio wrote:

but why dont you just do it the simple way? your way would be ruined if you had a lotta sprites. it would be buggy and laggy. why dont you jsut do if touching bla1 or bla2 or whatever?

read dudeson's first post...

Offline

 

#10 2009-07-11 13:33:25

Dudeson
Scratcher
Registered: 2009-05-07
Posts: 25

Re: ObjectX

bhz wrote:

pinochio wrote:

but why dont you just do it the simple way? your way would be ruined if you had a lotta sprites. it would be buggy and laggy. why dont you jsut do if touching bla1 or bla2 or whatever?

read dudeson's first post...

hell yes dawg!

Offline

 

Board footer