Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


left and a

View previous topic View next topic Go down

left and a

Post by WastedJamacan on Thu Jun 04, 2009 1:49 pm

how do i say,
if keyboard_check(ord_a)
do as left key?
avatar
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 30795
GameML Reputation : 1
Join date : 2009-06-04
Age : 24

View user profile

Back to top Go down

Re: left and a

Post by 3d on Thu Jun 04, 2009 1:51 pm

wait what? in order to move with left button you do
keyboard_check(vk_left) and u did with the button A wrong
its

keyboard_check(ord"A"))

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 42366
GameML Reputation : 66
Join date : 2009-05-31
Age : 35
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: left and a

Post by WastedJamacan on Thu Jun 04, 2009 1:52 pm

i mean, how do i say, if the letter a is pressed, do the same thing as if the left key is pressed
avatar
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 30795
GameML Reputation : 1
Join date : 2009-06-04
Age : 24

View user profile

Back to top Go down

Re: left and a

Post by -js1210- on Thu Jun 04, 2009 2:33 pm

WastedJamacan wrote:i mean, how do i say, if the letter a is pressed, do the same thing as if the left key is pressed

Well im not sure if this is exactly what u need but heres wat u can do.

Copy what command you have for the left key and set it in the "a" key.

So if pressing left makes guy go (x0,y-3) then just copy that so that pressing "a" makes guy go (x0, y-3)
avatar
-js1210-
Super 500 GML
Super 500 GML

Posts : 1298
Points : 32732
GameML Reputation : 27
Join date : 2009-06-02
Age : 22
Location : United States

View user profile http://www.yoyogames.com/members/js1210

Back to top Go down

Re: left and a

Post by WastedJamacan on Thu Jun 04, 2009 3:09 pm

hm... i thought i saw a function that does this a long time ago. o well.
avatar
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 30795
GameML Reputation : 1
Join date : 2009-06-04
Age : 24

View user profile

Back to top Go down

Re: left and a

Post by 3d on Thu Jun 04, 2009 3:51 pm

do it so when u press left and it sets variable movea to 1 and when its released it sets it to 0. and when you press a it sets movea to 1 and when released it sets to 0. under step when movea=1 move left. OR you could just do it for left, and then right click on the selection keyboard left, and duplicate it for keyboard right.

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 42366
GameML Reputation : 66
Join date : 2009-05-31
Age : 35
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: left and a

Post by CarnivorousA on Sat Jun 06, 2009 6:53 am

I don't get what you want. What are you trying to say?

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 32582
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: left and a

Post by -js1210- on Sat Jun 06, 2009 7:53 am

ill add what u want to my tutorial carivoreous. You can look there. ill tell you when i do it
avatar
-js1210-
Super 500 GML
Super 500 GML

Posts : 1298
Points : 32732
GameML Reputation : 27
Join date : 2009-06-02
Age : 22
Location : United States

View user profile http://www.yoyogames.com/members/js1210

Back to top Go down

Re: left and a

Post by 3d on Sat Jun 06, 2009 2:11 pm

ummm i just said it..


do it so when u press left and it sets variable movea to 1 and when its released it sets it to 0. and when you press a it sets movea to 1 and when released it sets to 0. under step when movea=1 move left. OR you could just do it for left, and then right click on the selection keyboard left, and duplicate it for keyboard righ

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 42366
GameML Reputation : 66
Join date : 2009-05-31
Age : 35
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: left and a

Post by Time on Sun Jun 07, 2009 8:29 am

Code:
if keyboard_check(vk_left) || keyboard_check(ord("A"))
{
//Do left stuff
}
avatar
Time
GameML Noob
GameML Noob

Posts : 22
Points : 30691
GameML Reputation : 3
Join date : 2009-06-01
Age : 24

View user profile

Back to top Go down

Re: left and a

Post by 3d on Sun Jun 07, 2009 8:30 am

or that!

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 42366
GameML Reputation : 66
Join date : 2009-05-31
Age : 35
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: left and a

Post by WastedJamacan on Tue Jun 09, 2009 9:40 am

AAAHHHHAAAHHH!
I found it

event_perform()

it was in the GDI sticky, but it was the link that broke earlier.
avatar
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 30795
GameML Reputation : 1
Join date : 2009-06-04
Age : 24

View user profile

Back to top Go down

Re: left and a

Post by 3d on Tue Jun 09, 2009 9:42 am

oh. cool! i might use that.

_________________
Creator of GameML, Thanks for Visiting!
avatar
3d
Admin
Admin

Posts : 1227
Points : 42366
GameML Reputation : 66
Join date : 2009-05-31
Age : 35
Location : U.S.A

View user profile http://gameml.iowoi.org

Back to top Go down

Re: left and a

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum