I have seen people using this block: xposition of Sprite1
Now I know how to get all the basic scrolldowns like x position, y position, direction and so on but i don't know how to get others.
For example, in my newest game Kitten Cannon, paddle2see was trying to help me put in angles. he told me all the scripts and i did them except one part. He used trig and in one part he used a block like the sensing block i am talking about except instead of having the basic scrolldowns, it included something else which i could not make. It said Barrelength of Sprite1. I have also seen others like in Archknghts project Archknight's Adventure to use collision detection he used one of those sensing blocks with a centerhittest of sprite1 All i am asking is how do u get those kind of scroll downs and how can you make them work?
Offline
Those are variables of that sprite. If you create a variable that is only used for that sprite, then it will appear on the () of sprite 1.
For example: If you made the variable "Score" on sprite 1. If you were to go to sprite 2 and take out that block; if you selected sprite 1, you could select the score of sprite 1.
Offline
Yeah so for example, if Player 1 has 2 variables called xVel and yVel, Player 2 can use that block as xVel of Player 1, or x position of Player 1
Offline
Oh. i'm stupid. THANK YOU!
Offline
You're not stupid...it's not a well documented feature and it is a bit complicated to understand. Sorry I didn't explain it better...I didn't understand what you were asking.
Offline
Paddle2See wrote:
You're not stupid...it's not a well documented feature and it is a bit complicated to understand. Sorry I didn't explain it better...I didn't understand what you were asking.
i actually just used it in a new game im working on.
Offline