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. 

Read possition on the grid of a tile on a tile map, and place a tile in that possition

Hello everyone, i've come here with a question very different from any i've made before, and that's bc this is for a little side-project and not the big project i normally work on.

A little context: There's a tile map, that contains an advertisement billboard, the billboard says something like "Wellcome to Caneda" with each letter being a tile on the tile map. Then the player has on the lowermost part of the screen a "toolbar" containing tiles with the alphabet. To complete the level the player needs to click a character on the toolbar, in this case "a" and then a blueprint script loads "a" on "selected_from_toolbar" variable, then the player gotta click the typo on the billboard to replace, in this case, the "e" in "Caneda" so it becomes "Canada".

The question is, how can i with the use of blueprint scripting, get the "id" of a clicked tile (whether is the a,b,c,d on the tileset, etc) and it's "x-y possition on the tilemap" to store them into a variable to compare later on, and also have the "e" tile clicked, being replace with the "a" tile stored in the "selected_from_toolbar" variable.

I thought of using an array of vector variables, each one containing the x-y possition of a tile on the tile map and use that for referencing everything but i am also not sure how o make that either.

How do you guys recomend that i board this problem?

Product Version: UE 4.21
Tags:
more ▼

asked Nov 29 '18 at 04:55 PM in Blueprint Scripting

avatar image

alefaso
12 2 1 4

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

0 answers: sort voted first
Be the first one to answer this question
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