constrain attribute crashing game
dbokser
Member Posts: 8
Hi. I'm trying to do something along the lines of the mini-map tutorial, but mine just prints out the x and y position of the player.
1. I created 2 game variables called PlayerPosX and PlayerPosY
2. I added Constrain Attributes for game.PlayerPosX to player.Position.X and game.PlayerPosY to player.Position.Y
3. I created another actor
4. I added 2 attributes to the second actor: posx and posy
5. I added Constrain Attribute for self.posx to game.PlayerPosX (and did the same for Y)
6. I added a Display Text and the text is self.posx
7. When I try and preview the game, I get a black screen or a crash.
Anybody know what's going on here?
1. I created 2 game variables called PlayerPosX and PlayerPosY
2. I added Constrain Attributes for game.PlayerPosX to player.Position.X and game.PlayerPosY to player.Position.Y
3. I created another actor
4. I added 2 attributes to the second actor: posx and posy
5. I added Constrain Attribute for self.posx to game.PlayerPosX (and did the same for Y)
6. I added a Display Text and the text is self.posx
7. When I try and preview the game, I get a black screen or a crash.
Anybody know what's going on here?
Comments