# Region Edge to Other Edge

#### BlackRose

##### Forum User
I want a unit to move from one point which is on the edge of the region to another edge... so it travels from like one edge to another.

How'd I go about doing this [potentially in the simplest most understable answer]?

#### Rushhour

##### New Member
JASS:
``````local real startX1=GetRectMinX(gg_rct_yourRect)
local real startY1=GetRectMaxY(gg_rct_yourRect)
local real targetX1=GetRectMaxX(gg_rct_yourRect)
local real targetY1=GetRectMinY(gg_rct_yourRect)
//order unit to move from startX1,startY1 to move to targetX1,targetY1
//moves from top left to bottom right

local real startX2=startX1
local real startY2=targetY1
local real targetX2=targetX1
local real targetY2=startY1
//moves units from bottom left to top right

call SetUnitPosition(unit,startX1/2, startY1/2)
call IssuePointOrder(unit,targetX1/2,targetY1/2)``````

#### BlackRose

##### Forum User
Is that from one random point on the edge to another random point of the opposite edge?

Looks like Corners.

#### Rushhour

##### New Member
JASS:
``````local real minY=GetRectMinY(gg_rct_yourRect)
local real maxY=GetRectMaxY(gg_rct_yourRect)
call SetUnitPosition(unit,GetRectMinX(gg_rct_yourRect),GetRandomReal(minY,maxY) )
call IssuePointOrder(unit,GetRectMaxX(gg_rct_yourRect),GetRandomReal(minY,maxY))
//something like this then? thought you wanted corner to corner``````

General chit-chat
Help Users
• No one is chatting at the moment.
• The Helper:
Friday Yay!
• mgarcia:
did you guys catch Carl's interview? https://www.youtube.com/watch?v=kuHiMXABkGs
• mgarcia:
he's the one that informed me about the DVD's working!
• mgarcia:
he also mentioned the progress on the controllers!
• The Helper:
I did actually it was cool to see the NUON mention
• The Helper:
https://discord.com/channels/985377399338332202/985377399950696481 you can still use this chat too we are two fisted now
• thewrongvine:
costs me \$80 to fill gas tank sad face
• Ghan:
Oof
• The Helper:
Yeah that gas is some expensive stuff
• The Helper:
ghan does not have to worry about it he has a tesla and I have a small tank so it does not cost me usually more than 50
• The Helper:
fyi Ghan we are getting an error trying to access stats or world editor tutorials Error 526 Ray ID: 72128c6bf99f6707 • 2022-06-26 02:35:15 UTCInvalid SSL certificate
• Ghan:
An artifact of switching to Cloudflare... the Let's Encrypt certs can't autorenew through Cloudflare.
• Ghan:
I got the forum updated before things expired but there were some other casualties.
• Ghan:
Everything should be fixed now....
• The Helper:
Thank you Ghan!
• The Helper:
Happy Monday!
• The Helper:
new NUON forum mod cubanral!
+1
• The Helper:
• tom_mai78101:
Started learning how to make tools-assisted speedruns, so I'm lately busy.
• tom_mai78101:
Here's my current project.
+3
that was pretty good!
• jonas:
really cool! I saw the game before but always thought it's just a half as good double dragon. Now I realize it actually has a lot of depth!
• The Helper:
I just saw a bunch of running and jumping past all the enemies look like it was scripted as he said I guess I should have watched the whole thing. I only got a couple of minutes in. You should post that video in the forum Tom
• Darthfett:
"Hi in the chat!"
+1
• tom_mai78101:
Currently busy with making the run even better, so I'll post that new one once I'm done. Right now, I had to modify the emulator itself, the tools that makes this video, and some RAM address disassembling / reverse-engineering to get the right values, and such.
+1