PlaceholderGames / 2122-yr1-team-cookieshot

CS1S464 2021/22 Team Cookieshot
0 stars 0 forks source link

How to make the lemmings to flip directions when they bump into walls #10

Closed KWHMarco closed 3 years ago

KWHMarco commented 3 years ago

@DoctorMikeReddy So I wanted to make the lemmings to start going into opposite directions when they bump into an object or lemmings

DoctorMikeReddy commented 3 years ago

Going to rebase lemming to master, then add the mouse control, and remove the player character, as per the mouse branch first. Then replacing the player as goal with On Hit event. This currently reacts to all hit events, such as landing on the ground after a fall or jump. You will notice that I have changed the variable name to goRight and replaced the player goal stuff. You will need to edit/extend this code. Revisions on lemming branch

DoctorMikeReddy commented 3 years ago

This tutorial might help with menu mouse control shifting to loaded levels: https://www.youtube.com/watch?v=Qspi31qtvpw

KWHMarco commented 3 years ago

@DoctorMikeReddy There is a problem,the lemmings flip sides when they touch the platform

DoctorMikeReddy commented 3 years ago

Is this your graphics? If so, you need to make sure they are double sided; i.e. the texture applied to the surface works on both sides of the poly that it is stuck to. Normally, graphics - like a chocolate wrapper - only show on the “outside” and not on the in side

DoctorMikeReddy commented 3 years ago

If it is the landing changing direction I DID say that you will need to extend the onHit code in the blueprint to determine what the lemming has collided with. That’s for you guys to do

KWHMarco commented 3 years ago

oh ok thanks

KWHMarco commented 3 years ago

Does that mean I will need to edit the"On Component Hit"part?

KWHMarco commented 3 years ago

I did check this video https://www.youtube.com/watch?v=q2enLa6T5qU but I still have no clue on how to change it