I have two layers, one with the ScrollRatioXY=1%, and the other with it 100%. How do I detect a collision between object "A" on one layer, with object "B" on the other? TheChosenOneARTS2011-12-17 17:36:34
Could you explain, why you need to proof the collition that way? Maybe we find another way to do it, if have further information about your actually goal?
I want to make something like this: If player overlaps sun -> sun's opacity -1, if not -> +1. BUT Sun is on layer with scroll ratio = 1%, and the player is on layer with scroll ratio = 100%, so it's not working because Construct thinks that player doesn't overlapping it, when it visually does.
I think it will work somehow with "overlapping at offset", and then puttin in a math formula, that dynamicly correct the difference that causes the scroll ratio. We just need one of the math guys . I'm pretty sure they will answer.
[code]+ Sun: overlaps player : offset (ScrollXLeft*(100-LayerScrollRateX(.Layer))/100, ScrollYTop*(100-LayerScrollRateY(.Layer))/100) -> Text: Set text to "true" [/code]
Thank you^^ I think I could need it also for another thing. Somehow, I knew, that if I say "math guy" r0j0 comes up with an example Could be usefull in combination with the sunrays example, which someone posted earlier.zyblade2011-12-19 20:18:50