How do I...code the map to teleport?

Get help using Construct 2

Post » Fri Oct 09, 2015 1:21 am

I've tried this tutorial and it doesn't work for me. https://www.scirra.com/tutorials/271/ve ... nteraction

The concept is the same. I'd like to be able to click on my map and have the character teleport to that location on the map. I've been able to figure out the map to make my own mini-map, but I can't find any other resources on making the mini map interactive in that aspect.

I'm hoping that someone either knows how to do it or has seen a tutorial about using the mini-map to spawn, teleport, move, or otherwise interact with the 'main' part of the game.

Any help is appreciated!
B
13
S
5
G
1
Posts: 2
Reputation: 6,149

Post » Fri Oct 09, 2015 2:34 am

If your minimap is 10% of your entire map, then maybe it would be mouse.X*100 mouse.Y*100 (or maybe 10? My math is broken today). use set position, that is another way of saying "teleport"
B
29
S
8
G
4
Posts: 767
Reputation: 5,985


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests