timyo's Forum Posts

  • 8 posts
  • I'm attempting to make a top down shooter. I have a start button and when clicked the a group is activated and enemies start to spawn but the 8 directional movement is deactivated for the player. it works fine before the start button and is pressed.

    I've tried activating it once the group is activated (the group that is activated once the start button is clicked, thus spawning enemies and will, hopefully,hold the rest of the program code) but that doesn't seem to work...

    Any suggestions?

    Thanks.

  • Thanks! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Oh ok awesome. Thanks a lot for making them! Currently working a break-out kinda game as well as a couple others. Maybe OnE dAy I'll actually sell something and make bookooz of pennies. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Oh ok awesome thank you! Yeah I don't mind that they are in plain text, just want them to be saved somehow.

    And thanks for making that examples .zip file. Hopefully those will come in handy. Just to make sure, may I use them (as examples, not direct copy and paste) within my games that I potentially sell?

  • Well I couldn't find any of them to save just a integer, like 4845, to a file.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm attempting to save the current score of the player to a .txt file and I can't seem to get it right... <img src="smileys/smiley19.gif" border="0" align="middle" />

    Here's what I have so far:

    "t = System.globalvar('CurScore') f = open('scores.txt', 'a')

    f.write t

    f.closed"

    At some point, I'd also like to get the program to display the highest score within the file but right now I just want this.

    Any ideas?

    Thanks.

  • Ok awesome that helped, thanks.

    Now, how would I go about detecting which unit I attacked with my unit? I was thinking of some how either "getting" the unit itself (easier) or a value that has been assigned to the enemy unit and then going from there?

    Thanks for the help.

  • Ok,I'm working on a turn based strategy game. I have the movement down, turns down, combat somewhat down, and I'm pretty positive I can get switching from unit to unit.

    Here's my question: Is there anyway I could have it to where all of player 1's units use this group of code when they move/attack/spell etc. and they just call the code when they need it? i.e. archer finished moving. I press Q to switch to my swordsman. I then use the arrow keys to move him next to the enemy and then press shift to attack the enemy. is there a way that he archer and the swordsman, and all of player 1's units use the same code and they just call it when needed?

    Thanks for the help.

  • 8 posts