Maxum's Forum Posts

  • Hi Border,

    Yes the order you have the layouts count. Move your Game-menu to the top so it will be the first to run.

    you need to move your Game Over text to the hud .

    I found a few other things too. I put them in a new Cap

    Link : http://www.savefile.com/files/1648111

  • I have Fixed this problem with the Object/Sprite Private Variables being Messed up. I just had to bite the bullet and re do the Object/Sprite . To bad it was my tank object and i had to redo about 80 to 90% of my code.

  • Hi TheInstance,

    Thanks for your input on this. I have uploaded my latest Cap.

    File Link http://www.savefile.com/files/1647496

    "Private Variables Messed up.zip"

    I have fixed the tank numbering loop problem and I have taken out all the extra loop lines I did not need.

    You can see the Private Variable problem when you run the game. Push F1 to pick a tank. The Hud info is wrong, and I know the code is right. This is what you get :

    Laser:2

    Shells:3

    Fire:4

    Landmines:0

    But if you check the object/sprite "tankbottom" Private Variables you have this:

    Laser:1

    Shells:2

    Fire:3

    Landmines:4

    The "AngleToEnemy" is bad and I can not delete it. It is not used in any code right now. But when I take it out the game crashes before it starts.

    So If anyone knows how to take out the "AngleToEnemy" Private Variable in the object/sprite "tankbottom" and have the Cap not crash. I'll like to know.

  • Sorry, I forgot that the link does not go right to the file but to the project area. The file you want is "Private Variables Messed up".

    I found and fix the loop problem. Thats when I found the Object/Sprite Private Variables problem.

    In the "Main Layout" Object "tankbottom". The bad variable is "AngleToEnemy".

    Edit:

    File Link http://www.savefile.com/files/1647496

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have an Object/Sprite that has its Private Variables Messed up.

    One of the Private Variables is like a black hole. It eats the Private Variables under it. Then the bad variable has the data for the the variable under it. This is then repeated for the rest of the variables under it.

    It Looks like this:

    Object/Sprite

    Private Variables :

    test1 : 111

    test2 : 222

    Bad : 0

    test4 : 444

    test5 : 555

    test6 : 666

    when you run the game/debug you get this:

    Object/Sprite

    Private Variables :

    test1 : 111

    test2 : 222

    Bad : 444

    test4 : 555

    test5 : 666

    test6 : 0

    You can check it out in my cap. In the "Main Layout" Object "tankbottom". The bad variable is "AngleToEnemy".

    I have tried to delete it, as it is not used in any of my code right now. But when I do the game crashes on startup.

    I hope someone knows how to fix this.

    Link: http://www.savefile.com/projects/808655567

    edit:

    Sorry, I forgot that the link does not go right to the file but to the project area. The file you want is "Private Variables Messed up".

    I found and fix the loop problem. Thats when I found the Object/Sprite Private Variables problem.

    File Link http://www.savefile.com/files/1647496

  • Hi TheInstance,

    The game is going fine. I Found out what my problem was with the numbering of my tanks. My coding was fine. It was the Text/Object, I forgot to check the Destroy on start box in the Groups Attributes. So I had 8 tanks and 9 TankNumbers Text/Object. When I did the loop to set the number to the Text/Object things got out of order.

  • Hi TheInstance,

    No that fine about the sprites, If it helps the other people learning Construct I am all for it.

  • Start of Layout
         For "MakeTanks" from 1 to 8 + system create object
    
         For each tank + tank: set 'tankid' to loopindex
                             + system: create NumberText
                             + NumberText: Set text to tank.value('tankid')[/code:2ga42qql]
  • Ashley I can use your help.

    I put the same code in my main program as I did in my little demo above. But something is up with the loop .

    I should get tank 1,2,3,4,5,6,7,8

    But I am getting tank 8,1,2,3,4,5,6,7.

    I can not see why this is happening.

    The other thing that is happening is when you push F7 you are getting a VRAM Usage Window pops up. That only happens with F7, and not with the other Fn keys to pick the tank. .

    Link: http://www.savefile.com/projects/808655567

  • Device name: NVIDIA GeForce 6600

    Pixel shader: 3

    Estimated VRAM: 359 MB

    Motion blur: Yes

  • Thanks Ashley and you too TheInstance,

    That was the last bit of info I needed to get my head around this problem. I have a link to my little CAP I did to show how this works.

    Let me know if I can streamline this any. I think in the Key check I can go to one check for each key instead of the two I have now.

    Link: http://www.savefile.com/projects/808655567

  • I am trying to figure out how to picking an object from multiple of same object with keyboard.

    Let us start here.

    We make a loop to make a object/sprite(tank) lets say 8 times.

    The first one is the default object/sprite(tank) out of the group of 8. It is the one the editor uses when you pick the object/sprite(tank) to do something to, like have the game scroll to the object/sprite(tank) so you can keep it centered on the screen.

    What I need to find out how to do is how to make the other object/sprite(tank) 2 - 7 of 8 the default one.

    What I like to do is push F2 and make object/sprite(tank)2 the default. Make it so that object/sprite(tank)2 can move and the other object/sprite(tank) of the 8 don't.

    Then be able to do the same thing for all 8 object/sprite(tank). By pushing F1 - F8.

    Can this be done? or do I need to make each tank a different object.

  • Hi TheInstance,

    Thanks for the feedback on my program and no I don't think you are puting my program down. This is just what I wanted. I am just starting to learn how to use Constuct. I want to learn new and better ways of how to do things in it.

    On to the game play.

    [quote:3w0ct7do]I dont like the 1,2,3 keys to change speed much.

    Press shift + the control keys to move faster ?

    And CTRL + the control keys for the 3th speed ?

    I'll have to think about the shift + arrow and the CTRL + arrow to do the speed changes. I did the 1,2,3 speed change, so the speed is locked in and your hand is free to do other things.

    [quote:3w0ct7do]I would add A health bar to the enemy tanks too.

    Yes I am going to have a health bar for the enemy tank too.

    But the enemy/player2 health bar will not be seen by player 1 (this is for net play)

    [quote:3w0ct7do]The background tiling ... um .. does not match where it repeats. Post the Graphics file and i will make a perfect Tile for you. If you dont have the programs to do so.

    [quote:3w0ct7do]I think also that you would be better off with grass that looks more *cartoonish*, just like the tank does.

    I think you are right about the background. It was something I found quick and have not got back to it.

    [quote:3w0ct7do]I so like the looks of the HUD. But the info is for me (personal) a little to much.

    Thanks I am glad you like it. As for the info, yes it is very busy. But alot of that is just testing info and will not be in the game.

    On to the events

    [quote:3w0ct7do]So perfectly organized. I Should take an example at that ! I read them line by line tomorrow if i have time.

    Thanks, I like to use the groups to try to keep thinks neat. I been thinking of using different sheets to do this too, as I seen others here do.

    [quote:3w0ct7do]You use 2 objects for the Cursors.

    I would use 1 object and drop the states in an animation.

    Yes you are right. I did this before I learned how to do the animation. This would save time on coding.

    Well I got to go for now, the wife is calling me for supper.

    Thanks again for your feedback on this.

  • I can use some help. I am just learning how to work in Construct.

    So I thought to best way to learn it is to make a program with it.

    I came up with Comm*Bat, It was one of the first multi-machine arcade style combat games written in 1981 for the TRS-80 computer. It' a strategic and tactical battle game that allows you to pit your skill and dexterity against another player in a real time battle to the death.

    So right now I just have the basic engine going. Movement, Weapons, Damage, Sound ect. It is very far from being close to being done. I have not even started the programing to load the weapons from the base to the tanks. there is no real AL yet, you can use F12 to move the player 2 tank to the player 1 tank.

    What I need some help on is on start up I like to do some kind of loop to make 8 tanks. That it self is not to hard, but I like to use the F1 - F8 keys to pick the tank that I want to control, have the HUD center on it. and not have the other tanks move and fire ....

    Also if you can find out were the Laser/Zap sound is coming from when you leave the Base from the right. I know its not from the player 2 tank, as I seen it right by the base and it did not fire but you still hear the zap sound.

    Link : http://www.savefile.com/projects/808655567

    As this is just something I am doing to learn Constuct please take a look at it and let me know if you have a better way to do something.

    I am always looking for new tips.

  • You can check this post out for info on Hinge.

    It has a CAP you can Download.

    http://www.scirra.com/phpBB3/viewtopic.php?f=3&t=827&p=6141&hilit=Hinge#p6141