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

#1 2011-09-22 12:12:47

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Need help! Urgent and confused!

Here's the problem:
A while back many helped me with a scrolling object problem, making sure when an object is placed it is not offset.

However, this time not only must it move with ScrollX/Y, but also MapX/Y

Basically the object must not be offset when the player is e.g. at the east of the cinema whilst building, instead of the centre

[blocks]<set{ ObjectX }to( Xpos - MapX + ScrollX)
<set{ ObjectY }to( Ypos - MapY + ScrollY)
<forever>
<set x to( ObjectX + MapX - ScrollX )
<set y to( ObjectY + MapY - ScrollY ) [/blocks]

Last edited by Borrego6165 (2011-09-22 12:14:33)


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2 2011-09-22 12:15:48

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Need help! Urgent and confused!

this may help: http://scratch.mit.edu/projects/Borrego6165/2031850


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#3 2011-09-23 17:12:06

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: Need help! Urgent and confused!

Don't Matter Anymore, It Works Now


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#4 2011-09-23 17:43:04

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Need help! Urgent and confused!

This is not an Advanced Topic. But it should be closed.

Conflict!!


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5 2011-09-23 18:01:25

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Need help! Urgent and confused!

henley wrote:

This is not an Advanced Topic. But it should be closed.

Conflict!!

The topic does belong in All About Scratch, and since the owner resolved the problem already, the topic should be closed to prevent people spamming on the thread.

So how about I do both?  tongue


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer