C
CombatCalamity
Guest
I want to make it exactly like this
Thanks.
Thanks.
Can you simply link the exact result that you meant here? Because I couldn't find exactly this. Surely it wouldn't be that much to ask for since it's been answered a few times in the past, right?Google “gamemaker card flip effect”
Its been asked and answered a few times in the past.
that would be a good start. You could try previous suggestions first.
hope that helps.
The steps for the easy way to do it:
1. Make object with card back sprite.
2. Gradually decrease image_xscale
3. When image_xscale == 0, change to card front sprite.
4. Gradually increase image_xscale back to 1.
That's not what I want at all. It will look like this instead.Sorry I don’t know how to code this myself.
I would try it with a sprite animation. (Because I cant code it). Make it quick. Wouldn’t be perfect though.
I might try playing with sprite animation and x_scale.
Unfortunately number 2 doesn't work that easily and it's the most viable option compared to the other 2. It has some weird behavior that stretches the sprite randomly.It's not much of a difference. It depends how difficult you want it to be to code.
Making image_xscale go from 1 to -1 and changing the sprite at 0 is the fast, easy way of doing it and it's a passable effect.
To achieve the effect in the CSS example where it turns through a 3d angle so that the card image skews slightly, you would have to do one of the following things:
- Make your game in d3d
- Use draw_sprite_pos and do some clever calculations
- Draw a primitive from scratch using some clever calculations
Ahhh crap, this is exactly what I'm looking for, thanks so much @The Reverend !!!!Not easy to do i 2D due zo how uvs are interpolated. Youd need a dhader gor thst.
Fortunately KeeVee has one on the marketplace: https://marketplace.yoyogames.com/assets/4720/draw-sprite-pos-fixed