Im currently working on a game and I have been all over the internet looking for footage on how to program a Onscreen ( Directional-Pad Button(s) ) using the Processing Library!
And when l tell there is absolutely noone explaining or who seems to know how to do this… It blows my mind…. Everyone knows how to make Key Events… but hardly anyone seem to have knowledge on how to make mouse/touch event D-Pad to simply make a player class object move…
In my concept illustration below I’ve sketched exactly what i mean and hope to achieve…
It’s what Id feel was a fundamental level idea… All i need is a D-Pad that make the player (Rect/ellipse) move upon being touched…
if anyone can do this or help me understand it would be a huge blessing… once i see the code i can understand it easily…
but oddly there are hardly anyone taking the mobile touchscreen direction in their lessons…
I literally was on this last night snd i just got so frustrated when you sent me this link lololol because I’m like man… I’ve already utilized this example…
But, then i altered the code a little bit and I’ve created a line that actually make my character move according to mouse clicks…
my only issue is ….2 things…
First I need the character to move when i click a button and im not sure how can i make a button connect to my code Below…