x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to unlock X\Yposition 3 seconds on start

Hi I'm Making a game called Cube Run.

The player controls a cube moving through a course to the end of the level.

The game plays as follows the player move left and right on the Y axis the player also move forward constantly on the X axis.

I would like the player's movement to be lock on start and after 3 seconds the player is able to move

                                    My blueprint are belowalt text

Product Version: UE 4.21
Tags:
capture.png (250.1 kB)
capture2.png (250.1 kB)
more ▼

asked Feb 14 '19 at 02:09 AM in Using UE4

avatar image

Dino dragon 900
10 1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You could try disable input, add a delay, then enable input like so:

alt text

Edit: Just noticed you are directly setting x on tick, if you want to disable that as well set your MoveForward variable to 0 then reset it after the delay

input-delay.png (78.8 kB)
more ▼

answered Feb 14 '19 at 03:07 AM

avatar image

bellyarms
31 4 6

avatar image Dino dragon 900 Feb 14 '19 at 04:08 AM

thanks I would like to know how to set the MoveForward variable to 0 then reset it after the delay

avatar image bellyarms Feb 14 '19 at 04:49 AM

Sure, no problem. Set the default value to 0, then just drag your variable out and do set (enter whatever value you want for your speed) and connect it after after the delay like this:

alt text

input-delay2.png (58.3 kB)
avatar image Dino dragon 900 Feb 14 '19 at 02:58 PM

thanks, How set this question to resolve?

avatar image bellyarms Feb 14 '19 at 04:28 PM

There should be a check mark under the up/down arrows.

Also, I just noticed a mistake in that last BP. The player controller should be plugged into the player controller pin (not target) on the enable input node :)

avatar image Dino dragon 900 Feb 14 '19 at 04:40 PM

can you be more pacific?

avatar image bellyarms Feb 14 '19 at 04:46 PM

Do you mean on the BP?

alt text

input-delay3.png (55.8 kB)
avatar image Dino dragon 900 Feb 14 '19 at 04:53 PM

no I men my question in answer HUB I got an satisfying answer my question I need know how label my question as resolve.

Edit I figured out set my question as resolve. thanks for the help I hope you enjoy my game when it coms out.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question