Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arrow key events
Senior Member
jrrTolkien's Avatar
Status: Offline
Posts: 166
Join Date: Feb 2014
Location: Middle-Earth (Merrimack, NH)
Question Arrow key events - 03-03-2014, 09:19 AM

Hi, so I am trying to make an 8-bit game, and I am having a little trouble. I have a 2-D square as the background, and it is coloured black. I have another square with the texture map of an 8-bit person, and I made events like "When 'down' is pressed, do" and then a method for moving the square (The method changes the texture map of the square and moves it in whichever direction the key is pointing [up makes the square go up, etc.].). I can get it to actually look like the person is moving, and I am starting on making collision detection.The only problem is that you need to press the key once every time the person moves. You can't just hold the button down. I could make an event saying "Let the arrow keys move" the square, but then there would not be the texture map switching, and the person would just move the square around without animation. What I am asking is: Is there any way to make an event that does not require you to press the arrow key repeatedly?

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.