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
Not that I know of. You could try using sprites as substitute reference points.
Offline
With alot of proggramming you probably could
Offline
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)
Offline
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)]
Offline
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
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 itThanks 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.
Offline