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

#1 2011-02-22 09:25:58

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Creating nodes on sprites???

Hi I was wondering if there was some way of configuring nodes or other points you can reference on sprites. You can reference the centre point of a sprite but is there some way of making another reference point on a sprite? (I don't want to move the centre point). The reason I want to do this is to attach other sprites at different points to a single sprite. Perhaps there is a way to do this if you modify the background code that scratch runs on.

Offline

 

#2 2011-02-22 09:41:48

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Creating nodes on sprites???

Not that I know of. You could try using sprites as substitute reference points.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#3 2011-02-22 09:42:27

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Creating nodes on sprites???

With alot of proggramming you probably could

Offline

 

#4 2011-02-22 09:47:17

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Creating nodes on sprites???

I've sorta figured it out. I'll upload. One minute.

http://scratch.mit.edu/projects/Stickman704test/1613049

this might be it

Last edited by Stickman704 (2011-02-22 09:55:31)


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#5 2011-02-22 10:44:40

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Creating nodes on sprites???

rep353 wrote:

Hi I was wondering if there was some way of configuring nodes or other points you can reference on sprites. You can reference the centre point of a sprite but is there some way of making another reference point on a sprite? (I don't want to move the centre point). The reason I want to do this is to attach other sprites at different points to a single sprite. Perhaps there is a way to do this if you modify the background code that scratch runs on.

Hm maybe use the [go to x: (x position of Sprite1 +(how far to the right)), y: (y position of Sprite1 +(how far to the left)]


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#6 2011-02-22 10:47:34

Lar-Rew
Scratcher
Registered: 2010-02-19
Posts: 100+

Re: Creating nodes on sprites???

You can use the set costume center in the editor to change the center.

Offline

 

#7 2011-02-22 11:45:40

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Re: Creating nodes on sprites???

Stickman704 wrote:

I've sorta figured it out. I'll upload. One minute.

http://scratch.mit.edu/projects/Stickman704test/1613049

this might be it

Thanks very much for putting in the effort to make an example. I am already using a system like this except I don't want to have to calculate a little to the left, a little to the right etc. That makes the game slower and if you notice there is a slight lag between when you move the cat and when the ball gets back to where it should be.

There is nothing wrong with what you did except I was looking for something like you could set a point (like extra centre points or something). I guess that would be a lot of work as you would probably have to mod scratch. Can that be done?

Offline

 

#8 2011-02-22 12:15:53

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Creating nodes on sprites???

rep353 wrote:

Stickman704 wrote:

I've sorta figured it out. I'll upload. One minute.

http://scratch.mit.edu/projects/Stickman704test/1613049

this might be it

Thanks very much for putting in the effort to make an example. I am already using a system like this except I don't want to have to calculate a little to the left, a little to the right etc. That makes the game slower and if you notice there is a slight lag between when you move the cat and when the ball gets back to where it should be.

There is nothing wrong with what you did except I was looking for something like you could set a point (like extra centre points or something). I guess that would be a lot of work as you would probably have to mod scratch. Can that be done?

Modding Scratch can be done, but you don't have to- you can merge two "sprites" into one. If you want an example, I'll show you what I mean.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#9 2011-02-22 14:59:21

rep353
Scratcher
Registered: 2010-03-22
Posts: 40

Re: Creating nodes on sprites???

Modding Scratch can be done, but you don't have to- you can merge two "sprites" into one. If you want an example, I'll show you what I mean.

Please do.

Offline

 

Board footer