Pages: 1
Topic closed
I really need it for a project, and only just realised it is not there.
I really don't see why they didn't put stage in it.
Offline
climber59 wrote:
When isn't a sprite touching the stage though?
When it is on top of another sprite or stamp.
Offline
Even if there is a way to get <Touching stamp> or <Touching stamp of [___]> I would be able to do it.
I have found a way around it but it is extremely glitchy and limits the background to a plain colour.
Offline
You could try putting a "Touching sprite" block on the stage... it could only work online, though Even then, I'm not totally sure if it would work...
Offline
Wolfie1996 wrote:
You could try putting a "Touching sprite" block on the stage... it could only work online, though
Even then, I'm not totally sure if it would work...
It just give out "Error!"
Offline
Problem: Stamps, once they're down, don't have their position recorded. So that won't be possible. I think you'll have to go with some complex variable/sprite oriented stuff then. Or use color sensors on the stage.
Offline
You could make an invisible sprite the size of the stage with the same looks as the stage and use that for sensing, but stamps can't really be sensed very well. What exactly are you stamping?
Offline
AtomicBawm3 wrote:
You could make an invisible sprite the size of the stage with the same looks as the stage and use that for sensing, but stamps can't really be sensed very well. What exactly are you stamping?
Stamps are the mario tiles, take a look at my newest project, link down in sig.
Since mario could not sense stamps as they are all different colours I was hoping I could make it so I could do sensors and when not touching stage.
Right now I am doing when not touching colour of stage, but it means the stage has to be one colour and sprites must avoid that colour.
Offline
fg123 wrote:
No. When a sprite is on top of another sprite, it is still touching the stage.
Really?
If it works like that, They need to change it.
Its like having a ham sandwich, the 2 bits of bread do not touch each other because the ham is in the middle, unless the ham is smaller than the bread.
Offline
colorfusion wrote:
fg123 wrote:
No. When a sprite is on top of another sprite, it is still touching the stage.
Really?
If it works like that, They need to change it.
Its like having a ham sandwich, the 2 bits of bread do not touch each other because the ham is in the middle, unless the ham is smaller than the bread.
Color contact has to be visible, but sprite contact doesn't. That's what makes hidden sprites able to sense if they're touching something.
Offline
I got it! But it's difficult. Have a list that gets added to when they click. Have it set that point to your costume number. Then, have your Mario sprite be above it's center of rotation. Using the x and y positions, round them to some decimal that makes it accurate enough. Then make the if list ask if where it is is a 1 on the list. It will work, I've used it before.
Offline
So from what I understand, you just want to know if a sprite is touching the stage? Then why not make a white sprite the size of the entire stage, set the ghost effect to 99, and make it go to the very back layer? Then use If <touching sprite _ > If would be nearly identical to If <touching stage>
Offline
Topic closed
Pages: 1