How to do make this code in GML ?
2 posters
Page 1 of 1
How to do make this code in GML ?
Check if the current x position of the player_obj is greater than half the sprite_width for the player_obj
subtract global.playerSpeed to the current x position of player_obj and store that value back inside the variable x for the player_obj
thanks
subtract global.playerSpeed to the current x position of player_obj and store that value back inside the variable x for the player_obj
thanks
zerugaze- Newbie
- Number of posts : 3
Warning :
Reputation :
Registration date : 2009-02-20
Re: How to do make this code in GML ?
- Code:
if(player_obj.x > (player_obj.sprite_width / 2))
{
player_obj.x -= global.playerSpeed;
}
I think thats what you want
Similar topics
» Does anyone know GML code for palette swapping.?
» Do you know any program to make a OS
» I Want To Make a Game
» How to make HTML file open in new window?
» How to learn Javascript fast and effective to make use in business website?
» Do you know any program to make a OS
» I Want To Make a Game
» How to make HTML file open in new window?
» How to learn Javascript fast and effective to make use in business website?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|