Discuss Scratch

ltlpop
Scratcher
33 posts

How to set x and y position on scrolling map

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
ZADENZERO
Scratcher
69 posts

How to set x and y position on scrolling map

ltlpop wrote:

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
Can we get some sort of link to the project, so we can look further in depth at it?
Rafael_Bagi123
Scratcher
86 posts

How to set x and y position on scrolling map

if i understand that correctly, you don't need any hard work

code to the point go to the mouse pointer:

when green flag clicked
forever
go to [mouse-pointer]
end

and the scrolling background:

when green flag clicked
forever
go to x: ((0) - (scroll x)) y: ((0) - (scroll y))

end
ltlpop
Scratcher
33 posts

How to set x and y position on scrolling map

Rafael_Bagi123 wrote:

if i understand that correctly, you don't need any hard work

code to the point go to the mouse pointer:

when green flag clicked
forever
go to [mouse-pointer]
end

and the scrolling background:

when green flag clicked
forever
go to x: ((0) - (scroll x)) y: ((0) - (scroll y))

end


I want the dot for help visualise where some points are on the map (like a level editor)
ltlpop
Scratcher
33 posts

How to set x and y position on scrolling map

ZADENZERO wrote:

ltlpop wrote:

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
Can we get some sort of link to the project, so we can look further in depth at it?

ZADENZERO wrote:

ltlpop wrote:

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
Can we get some sort of link to the project, so we can look further in depth at it?
I made a game (not actuale game) for nyone that can help
https://scratch.mit.edu/projects/923011641/
Rafael_Bagi123
Scratcher
86 posts

How to set x and y position on scrolling map

ltlpop wrote:

ZADENZERO wrote:

ltlpop wrote:

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
Can we get some sort of link to the project, so we can look further in depth at it?

ZADENZERO wrote:

ltlpop wrote:

(Yesterday I made a simular post but it was confiousing so I simplefied it)
I want to make a dot going to the mouse pointer in a scrolling map, but mines doesnt even move (it actully move to the mouse pointer but when i move it stays behind)
Here my script:
when green flag clicked
forever
go to x: ((mouse x) - (scroll_y)) y: ((mouse y) - (scroll_x)
end
Can we get some sort of link to the project, so we can look further in depth at it?
I made a game (not actuale game) for nyone that can help
https://scratch.mit.edu/projects/923011641/


FIXED!! it is a remix of your project! all the changes i made is in the project description!

Powered by DjangoBB