Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Common tasks
(view source)
Revision as of 01:15, 24 May 2018
10 bytes added
,
01:15, 24 May 2018
no edit summary
Line 116:
Line 116:
−
The player's position relative to the viewport is as follows:
+
The player's position
in pixels
relative to the viewport is as follows:
<source lang='c#'>
<source lang='c#'>
Game1.player.Position.X - Game1.viewport.X
Game1.player.Position.X - Game1.viewport.X
Bouhm
17
edits