Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo 3DS
[Release] - LövePotion - LÖVE API for 3DS Homebrew - BETA
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="haazet" data-source="post: 5902964" data-attributes="member: 377110"><p>Im having trouble to get the blank touchscreen control my player that is on the upper screen. Im trying to find some examples but having cant seem to see it. I think have mouse movement down if he was on the lower screen</p><p></p><p>love.update [SPOILER=".update"]</p><p>--Still Updating Mouse Movement</p><p>if love.mouse.isDown then --Check every frame if left mouse button is down</p><p> local mousex, mousey = love.mouse.getPosition() --Get mousex and mousey because it's not given to us</p><p> player.move_to(mousex, mousey)</p><p> end</p><p>[/SPOILER]</p><p></p><p>This is the player.moveto function that i use on my player = {} [SPOILER="player.moveto"]</p><p>function player.move_to(_x, _y)</p><p> dx = _x - player.x</p><p> dy = _y - player.y</p><p> length = math.sqrt(dx*dx+dy*dy);</p><p></p><p> dx = (dx/length)</p><p> dy = (dy/length)</p><p></p><p> player.x = (player.x + dx * player.speed)</p><p> player.y = (player.y + dy * player.speed)</p><p> end</p><p></p><p>[/SPOILER]</p></blockquote><p></p>
[QUOTE="haazet, post: 5902964, member: 377110"] Im having trouble to get the blank touchscreen control my player that is on the upper screen. Im trying to find some examples but having cant seem to see it. I think have mouse movement down if he was on the lower screen love.update [SPOILER=".update"] --Still Updating Mouse Movement if love.mouse.isDown then --Check every frame if left mouse button is down local mousex, mousey = love.mouse.getPosition() --Get mousex and mousey because it's not given to us player.move_to(mousex, mousey) end [/SPOILER] This is the player.moveto function that i use on my player = {} [SPOILER="player.moveto"] function player.move_to(_x, _y) dx = _x - player.x dy = _y - player.y length = math.sqrt(dx*dx+dy*dy); dx = (dx/length) dy = (dy/length) player.x = (player.x + dx * player.speed) player.y = (player.y + dy * player.speed) end [/SPOILER] [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo 3DS
[Release] - LövePotion - LÖVE API for 3DS Homebrew - BETA
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
AncientBoi
Loading…
Xdqwerty
Loading…
what are you looking at?
@
K3Nv2
:
I lost weight over getting rid of my doctor
+1
Today at 7:49 PM
@
AncientBoi
:
Today at 7:49 PM
@
SylverReZ
:
@K3Nv2
, Is that why you're posting a lot of food on your profile?
+1
Today at 7:56 PM
@
SylverReZ
:
Only place would be instagram.
Today at 7:56 PM
@
K3Nv2
:
WHAT PEOPLE BUY FOOD
+1
Today at 8:03 PM
@
SylverReZ
:
@K3Nv2
, Does this solve your answer?
https://gbatemp.net/profile-posts/163277/
+1
Today at 8:04 PM
@
AncientBoi
:
He/them/
IT
does
+1
Today at 8:04 PM
@
SylverReZ
:
Today at 8:05 PM
@
K3Nv2
:
Oh wow people buy food never would've thought
Today at 8:06 PM
@
AncientBoi
:
You? Think? pffffffffft
Today at 8:07 PM
@
K3Nv2
:
What kind of idiot would buy food
Today at 8:08 PM
@
AncientBoi
:
I don't know
.
But this NON-Idiot buys food
Today at 8:11 PM
@
K3Nv2
:
That kind of is
Today at 8:15 PM
@
K3Nv2
:
https://youtu.be/jaE4Mpjmkh4?si=QqDRRHsB56fwTlCT
Today at 8:16 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=Sjy9nc5QwBY
Today at 8:17 PM
@
SylverReZ
:
@K3Nv2
,
https://www.youtube.com/watch?v=gzmdrobXH34
Today at 8:18 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=23HgOvEYrDc
Today at 8:46 PM
@
Xdqwerty
:
Hi
31 minutes ago
@
AncientBoi
:
low
29 minutes ago
@
Xdqwerty
:
Mid
28 minutes ago
@
AncientBoi
:
side
28 minutes ago
@
Xdqwerty
:
Also the wood ui for twl menu is back
https://github.com/DS-Homebrew/TWiLightMenu/releases/tag/v27.2.0
+2
28 minutes ago
@
SylverReZ
:
https://www.youtube.com/watch?v=tM4vMLpcX7A
9 minutes ago
@
Xdqwerty
:
@SylverReZ
,
https://m.youtube.com/watch?v=5m5CTaF-qHE&pp=ygUkc2VyaWFsIGV4cGVyaW1lbnRzIGxhaW4gcHMxIGxvbmdwbGF5
+1
3 minutes ago
@
AncientBoi
:
Over 11 hours. Umm
to long. Me NO watch
A moment ago
Submit
@
AncientBoi
:
Over 11 hours. Umm
to long. Me NO watch
A moment ago
Chat
2