How to use flip in this way?

Idk how to make an object so if it moves left it flips to the left and move right flip to rignt

6 Likes

Like this?

4 Likes

That’s perfect, yes.

4 Likes

I copied the code, thank you and have a nice day1

4 Likes

How does that work?

6 Likes

So if you’re only talking about the flip code, then it’s actually pretty simple (especially with the new “flipped” condition).

#1: The “when pressed rule checks when the screen is pressed.

#2: It checks to see if you’re pressing on the left or right half of the screen. (This works well for when the character moves left or right according to which side of the screen you press, like in my example.)

#3: If you are pressing on the right side of the screen, it will check if it’s flipped to the left, if so, it will flip it to the right.
If it’s already flipped to the right (not flipped) then that code will not run.
Same for the left, but opposite, it checks if it’s not flipped.
You would swap it for most emoji’s though, as most emoji’s face left, instead of the typical HS characters, which face right.

I could explain it in even more detail, but that was already a lot of typing, and I’m bad enough at explaining even simple stuff.

Lmk if you need more details though!
I’d be happy to help!

5 Likes

This is actually perfect for my new game Meteor Shower, this PERFECTLY matched the features i wanted in the game

3 Likes

I feel like its not new lol am i crazy or has it been there for a while

2 Likes

Hmm, it feels new to me, lol.
Oh, well I guess around a year isn’t new ;-;

3 Likes

oh that’s really nice, i always forget about the flipped condition

4 Likes

There’s also another way to do it without the flipped condition, I had to use that before the condition came out.
I could show you if you like?
Also, Idk if we’re supposed to still be using this topic.
But I mean, it’s still technically an on-topic conversation.

4 Likes

No, I’m oretty sure this would be better and more clear than anything I can think of

4 Likes

Define flipped as a boolean?

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.