0
$\begingroup$

enter image description hereI am making a game in which if you press e the character will lift up their shield to block an object. I am using a cube to detect objects so when i press e I want the cube to move up to avoid hitting with an obstacle, giving the illusion that you have blocked the obstacle with your shield. When I use the motion actuator it moves up fine but it just wont move back down automatically to receive another obstacle ahead. Thank you for any feedback.here is the detection cube

$\endgroup$
  • $\begingroup$ May I see the logic bricks please? $\endgroup$ – CGFrog Jun 24 '17 at 0:29
  • $\begingroup$ I have updated the post. $\endgroup$ – Reece Allen Jun 24 '17 at 11:52
  • $\begingroup$ @ReeceAllen you have no logic to make it move back down $\endgroup$ – Scalia Jun 24 '17 at 20:22
  • $\begingroup$ @Scalia What logic bricks would I need to make it come back down after a few seconds? $\endgroup$ – Reece Allen Jun 24 '17 at 21:10
  • $\begingroup$ Your system right now has no great way to move it back down. You're gonna need to make some changes. I would recommend making an animation for the shield or creating a property that defines its locations. blender.stackexchange.com/questions/49114/… blender.stackexchange.com/questions/24612/… $\endgroup$ – Scalia Jun 24 '17 at 21:12
1
$\begingroup$

I suggest to play an action that lifts the object.

A simple logic would be to have one sensor that measures when to block (e.g. keyboad sensor on E).

enter image description here

Activate an action actuator that plays the action in flipper mode. This means when the blocking request ends -> the action will be played reverse.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.