Thanks in advance.
Edited by larreeh, 10 July 2012 - 01:18 AM.
Posted 10 July 2012 - 01:17 AM
Edited by larreeh, 10 July 2012 - 01:18 AM.
Posted 10 July 2012 - 01:34 AM
if keyboard_check_pressed(vk_space)//this could be any thing.
{
itemValue+=1
}for ordinary keys from A-Z and 0-9 u must do keyboard_check_pressed(ord('A')) etc.
Edited by ZyklonMiraj, 10 July 2012 - 01:35 AM.
Posted 10 July 2012 - 08:14 AM
//Have:
if position_meeting(x,y,obj) {itemValue+=1}
Posted 11 July 2012 - 12:42 AM
So on the "key press" event (the button you have to press)
or
![]()
//Have: if position_meeting(x,y,obj) {itemValue+=1}
Edited by larreeh, 11 July 2012 - 12:43 AM.
Posted 11 July 2012 - 03:09 AM
if position_meeting(x,y,obj_dispenser) {itemVariable+=1}
//once you press the key it executes this code which checks if you're colliding with obj_dispenser and if yes then it will increase itemVariable by oneEdited by GMKn00b, 11 July 2012 - 03:20 AM.
0 members, 0 guests, 0 anonymous users