プレイ日記
PChicken NerdChicken
After some disconcerting bugs were dealt with, and a rework of the way elements are defined, I have to rework dragging. Funny, right?
7そうだね
プレイ済み
返信[1]
親投稿
Wakko :-p WakkoWarner1234
How do you drag an element onto another?
0そうだね
プレイ済み
返信[2]
親投稿
PChicken NerdChicken
I check for ONLY the first frame of when the screen is touched, then in that frame I get the first sprite that contains the cursor coords. After that, I get the offset between my cursor and the sprite position.Then for the rest of the time that the screen is touched, I move the sprite to the cursor plus the offset I collected before.When I lift the stylus from the screen, I reset everything.
1そうだね
プレイ済み
返信[3]
親投稿
PChicken NerdChicken
I then check while the screen is not touched if elements are those in any recipe, and if they are, I check if they are colliding. If so, I delete both and make a new sprite with the resulting element type.
1そうだね
プレイ済み