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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why isn't amount of blocks always in the center? And how set it to the center?

Hello, I have one big problem with my game. I wanna blocks always in the center, when I change amount of blocks, ex. from 10*10 it will be 5*5, or 3*3.... but it should be always in the center of "background" behind blocks.

But now, here is problem.

10*10, it looks like in the center (on every side is same amount of the blocks) alt text

5*5 it isn't in the center (right and up sides are bigger than left and down sides) alt text

My blueprint looks: (PS: -2.2 is good for 10*10 center, but no for 5*5, but IDK why, there is probably something wrong.... for 5*5 is good 2.4 but it isn't good for 10*10, etc.) alt text alt text alt text

Can someone help me solve it, please? I wanna it same (in the center) when I change amount of blocks...

Product Version: UE 4.17
Tags:
more ▼

asked Oct 21 '17 at 11:24 AM in Blueprint Scripting

avatar image

Renzotom
24 4 7 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

If I were you, I'd look at this node:

alt text

This will speed up everything you do with grid patterns.

2dgrid.png (86.0 kB)
more ▼

answered Oct 21 '17 at 01:03 PM

avatar image

Everynone
14.6k 76 25 61

avatar image Renzotom Oct 21 '17 at 01:55 PM

I have some issues with it. I am newbie, so IDK how exactly make it.

1) I don't have there Spawn Transform Location, Rotation and Scale as you.

2) I don't know how activate that function.

alt text

avatar image Everynone Oct 21 '17 at 03:10 PM

Disconnect the Transform, right click on it and split pin.

I don't know how activate that function.

There is an execution wire in your screenshot, plug in there. It does not have to be in a loop or wrapped in a function.

avatar image Renzotom Oct 21 '17 at 06:51 PM

With some small changes it worked, thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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