Two questions
2 posters
EMS Forums :: Discussion :: Game Maker :: Questions
Page 1 of 1
Two questions
Firstly, I'd like to make a status bar at the bottom of the view that follows the screen. It'll have objects that will become visible when a global.variable is set to true.
eg. You collect a letter it shows you which letters you have.
I'm doing it without drawing, just an object with a sprite
Secondly, I'd like to make the player have pink particles come off it when they move.
Joe
eg. You collect a letter it shows you which letters you have.
I'm doing it without drawing, just an object with a sprite
Secondly, I'd like to make the player have pink particles come off it when they move.
Joe
Joegernaut- Corporal
- Posts : 78
Join date : 2011-04-18
Age : 27
Location : New Zealand
Re: Two questions
Okay, for the first I suggest:
I'll move onto the next question when this one is solved.
- Code:
if global.VAR = true{draw_sprite(SPRITE,0,view_xview+XPOSITION,view_yview+view_hview-SPRITE_WIDTH)}
I'll move onto the next question when this one is solved.
Water Chicken- Lieutenant
- Posts : 254
Join date : 2011-03-22
Age : 24
Location : Chandler, Indiana
Re: Two questions
but then how do I make the sprite change if a variable is activated
Joegernaut- Corporal
- Posts : 78
Join date : 2011-04-18
Age : 27
Location : New Zealand
Re: Two questions
draw_sprite(SPRITE,global.VARIABLE,view_xview+XPOSITION,view_yview+view_hview-SPRITEWIDTH)
If global.VARIABLE is true, it will draw it as a different subimage.
If global.VARIABLE is true, it will draw it as a different subimage.
Water Chicken- Lieutenant
- Posts : 254
Join date : 2011-03-22
Age : 24
Location : Chandler, Indiana
Re: Two questions
Mah epics diagramz
The grey letters means you haven't gotten it yet and pink means you have
The grey letters means you haven't gotten it yet and pink means you have
Joegernaut- Corporal
- Posts : 78
Join date : 2011-04-18
Age : 27
Location : New Zealand
Re: Two questions
For the letters:
- Code:
draw_sprite(LETTERSPRITE,global.HASGOTTHAT,view_xview+XPOSITION,view_yview+YPOSITION)
Water Chicken- Lieutenant
- Posts : 254
Join date : 2011-03-22
Age : 24
Location : Chandler, Indiana
EMS Forums :: Discussion :: Game Maker :: Questions
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|