probably old but....

Game Editor comments and discussion.

probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:01 pm

Im very new to this, but i made an event for a space invaders game and i managed to make key down repeat but not key up.
EDIT: i have to repeatedly stab the left arrow to make it go left

Help please?

Thanks
Last edited by wolfeh66 on Tue Apr 29, 2008 9:05 pm, edited 1 time in total.
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:05 pm

what do you want it to do?
key up makes an action happen when the key is lifted like how keydown works.
for the caveman demo the keydown event made it change to running animation keyup made it change back to standing
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:07 pm

quick reply!

i want it to go left, i typed x = x - 4 to make it go left but it has repeat eneable/disable so i cant hold the left key and make it go continusouly (sp) left
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:09 pm

oh, if you want the ship to go left set it to repeat
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:13 pm

but i cant find repeat, thats the problem :?
it was near the bottom of the window for key down but it just isnt there for key up
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:15 pm

Key up doesn't have a repeat, use keydown for making the actor move.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:17 pm

so what other key does have a repeat?
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:21 pm

? :?: ? ok im confused sort of...heres how you make an actor move, go to add event>Key down(Repeat)>Script edtior>
Code: Select all
x=x-4
then click add(immediate action).
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:24 pm

yeah, i did that with a + intstead of - to make him go right by pressing right arrow key
but my probelm is, im not sure of a key to make him go left with x = x - 4

confusing now :(
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:25 pm

oh maybe the left arrow key?
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:26 pm

yes but key up doesnt repeat so i cant hold the left arrow key to make him go left, i have to repeatedly stab the left arrow key
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:27 pm

use keydown
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:28 pm

but ive used that to make him go right with the right arrow key
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby wolfeh66 » Tue Apr 29, 2008 9:32 pm

will have to check for answer tomorrow

bye for now
|'''\(>.<)/'''| RAWR!
wolfeh66
 
Posts: 11
Joined: Mon Apr 28, 2008 8:15 pm
Location: England, at my computer or on the couch revising
Score: 0 Give a positive score

Re: probably old but....

Postby Caaz Games » Tue Apr 29, 2008 9:34 pm

just do it again Image look at the space invaders demo. save your space invaders and load the space invaders it should be where game editor is located on your computer probably program files, then in tutorials open it up and then click on the player ship and look at edit events there is multiple buttons on keydown.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Next

Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron