When you wrap an image horizontally the exact same image and image placement wraps, so you're going to get what you show in your "NO" example. But it's not really no, because the image is horizontally wrapping exactly as you should expect it to.
Your "YES" example is not a horizontally wrapped image...
What are you trying to accomplish exactly, a sloping platform?
You can't do an 'offset' with image wrap (though it would be cool if you could) so I think you're best option is to use separate actors and align them as needed to build the slope.
I see that, but if you are trying to build a sloping platform the replicated pieces will not have any physics or interactivity. They end up just being images. Which is great if you just want scenery or effects. Depends on the need I suppose.
@jamie_c said:
As with most things, it just depends on the final requirements of the project.
Yep, if he wants the hero (for example) to interact with these slopes then making them a slanted image doesn't help, as the hero would still interact with the image bounderies rather than the slope part of the image - that's why I think he'd be better off building these platforms flat and then rotating them within GameSalad.
that's why I think he'd be better off building these platforms flat and then rotating them within GameSalad
I agree. I've also created two actors in the past, an image of a slope that is nothing more than an image. And a second, transparent, actor to act as the collision surface.
Comments
Not sure I'm understanding your question, you can use Horizontal Wrap with ANY image.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Hello Jamie, this is what i want
When you wrap an image horizontally the exact same image and image placement wraps, so you're going to get what you show in your "NO" example. But it's not really no, because the image is horizontally wrapping exactly as you should expect it to.
Your "YES" example is not a horizontally wrapped image...
What are you trying to accomplish exactly, a sloping platform?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Yes , a sloping platform , just wanted to know if there is a formula to use the same image as tile
You can't do an 'offset' with image wrap (though it would be cool if you could) so I think you're best option is to use separate actors and align them as needed to build the slope.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
You will> @agueis said:
You could try something like this (see attached file):
Another way you could do this (file attached):
And a third way . . . (attached file)
You can do all sorts of image offsets fairly easily with the Replicate behaviour, example attached:
I see that, but if you are trying to build a sloping platform the replicated pieces will not have any physics or interactivity. They end up just being images. Which is great if you just want scenery or effects. Depends on the need I suppose.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Good point ! This would only really work for design elements.
As with most things, it just depends on the final requirements of the project.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Here's a version with actual geometry . . . type the number of additional platforms you want into the parent rule.
Yep, if he wants the hero (for example) to interact with these slopes then making them a slanted image doesn't help, as the hero would still interact with the image bounderies rather than the slope part of the image - that's why I think he'd be better off building these platforms flat and then rotating them within GameSalad.
I agree. I've also created two actors in the past, an image of a slope that is nothing more than an image. And a second, transparent, actor to act as the collision surface.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Ok, Thank you very much