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!

Join the forum, it's quick and easy

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!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

left and a

5 posters

Go down

left and a Empty left and a

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

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

Posts : 139
Points : 54595
GameML Reputation : 1
Join date : 2009-06-04
Age : 30

Back to top Go down

left and a Empty Re: left and a

Post by 3d 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"))
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

left and a Empty Re: left and a

Post by WastedJamacan 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
WastedJamacan
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 54595
GameML Reputation : 1
Join date : 2009-06-04
Age : 30

Back to top Go down

left and a Empty Re: left and a

Post by -js1210- 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)
-js1210-
-js1210-
Super 500 GML
Super 500 GML

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

http://www.yoyogames.com/members/js1210

Back to top Go down

left and a Empty Re: left and a

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

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

Posts : 139
Points : 54595
GameML Reputation : 1
Join date : 2009-06-04
Age : 30

Back to top Go down

left and a Empty Re: left and a

Post by 3d 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.
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

left and a Empty Re: left and a

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

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

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

http://entertainmypeople.freeforums.org/index.php

Back to top Go down

left and a Empty Re: left and a

Post by -js1210- 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
-js1210-
-js1210-
Super 500 GML
Super 500 GML

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

http://www.yoyogames.com/members/js1210

Back to top Go down

left and a Empty Re: left and a

Post by 3d 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
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

left and a Empty Re: left and a

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

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

Posts : 22
Points : 54491
GameML Reputation : 3
Join date : 2009-06-01
Age : 31

Back to top Go down

left and a Empty Re: left and a

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

or that!
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

left and a Empty Re: left and a

Post by WastedJamacan 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.
WastedJamacan
WastedJamacan
GameML Adventurer
GameML Adventurer

Posts : 139
Points : 54595
GameML Reputation : 1
Join date : 2009-06-04
Age : 30

Back to top Go down

left and a Empty Re: left and a

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

oh. cool! i might use that.
3d
3d
Admin
Admin

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

https://gameml.forumotion.com

Back to top Go down

left and a Empty Re: left and a

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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