|
Post by Cookie on Jan 18, 2016 22:12:00 GMT -6
Well, I'm making a pong game, and right now, the character (Who is the paddle) can only be moved around by clicking and dragging it from place to place, but I wanna make it so it's controlled by the arrow keys, but I don't know how.
I'm also wondering if it's possible to make it so only one bit of the sprite touches the ball.
|
|
|
Post by WAVERUNNER on Jan 21, 2016 19:26:53 GMT -6
You need to use the "when (insert desired key here) pressed" and the "move (desired direction)" blocks on the paddle
That would take more than one Sprite I think to make only a little bit touch it
|
|
koreean-empire-charms
Topaz
Tree Star
Adimn-chan is adimning.
Posts: 2,250
Things I Like: Stories, Movies, Music, Food, Unhealthy Food, Very Unhealthy Food, Sugar, More Sugar, Weed, Roleplaying, Writing Fanfiction, Drawing / Animating, Other
|
Post by koreean-empire-charms on Jan 21, 2016 20:58:09 GMT -6
Let me help.
|
|
koreean-empire-charms
Topaz
Tree Star
Adimn-chan is adimning.
Posts: 2,250
Things I Like: Stories, Movies, Music, Food, Unhealthy Food, Very Unhealthy Food, Sugar, More Sugar, Weed, Roleplaying, Writing Fanfiction, Drawing / Animating, Other
|
Post by koreean-empire-charms on Jan 21, 2016 21:06:44 GMT -6
When flag clicked If key right arrow pressed? Wait until not key right arrow pressed? Change X by 10 If key left arrow pressed? Wait until not key left arrow pressed? Change X by -10 If key down arrow pressed? Wait until not key down arrow pressed? Change Y by -10 If key up arrow pressed? Wait until not key up arrow pressed? Change Y by 10
|
|
koreean-empire-charms
Topaz
Tree Star
Adimn-chan is adimning.
Posts: 2,250
Things I Like: Stories, Movies, Music, Food, Unhealthy Food, Very Unhealthy Food, Sugar, More Sugar, Weed, Roleplaying, Writing Fanfiction, Drawing / Animating, Other
|
Post by koreean-empire-charms on Jan 21, 2016 21:11:11 GMT -6
(CODE FOR BALL)
When flag clicked Forever If touching (name of the Paddle Sprite) broadcast message1 wait 1 secs Change y by 150 or -150
(CODE FOR PADDLE)
When I receive message1 Change x by 150 or -150
|
|
|
Post by Lovelin on Feb 13, 2016 20:03:21 GMT -6
I hope that helped Cookie!
|
|