Maxum's Recent Forum Activity

  • I am not sure what happend. This was working ok with Construct 0972. The number tags for the tanks are not showing up and picking by number is not working now.

    I upgraded to Construct 0976 so I can change the the sound to the new sound system, but it seems a lot more has changed. That broke my CAP.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi linkman2004,

    I think I got a quick fix for you. I think your problem with the color selector box is the opacity setting.

    On the right hand side of the picture editor, right above the RGB / HSL tabs you have the O: (opacity) Setting you must have that set to "0" you need to set that back to "255". You than sould be able to pick colors agian. Or should I say you can see the colors you pick.

    I did this my self once. I wanted to make a transparent background so I set the O: (opacity) Setting to "0". Then I left the editor.

    The problem came in when I went back in to the editor, It save the settings for the O: (opacity) from last time. So when I was trying to pick colors nothing would come up. It took me a little bit to figure it out.

    I hope this helps you out.

  • I would like to try and use python too, but I am not sure on the right way to do it.

    Could some good kind person make a simple CAP with some python code added in it. To show the right way to do it. So I can see how python talks to Constuct.

  • Hi Ktel,

    [quote:3nu4s9ob]3) When I try to stop the player's sprite from moving outside the screen, the ship sticks for a while and it's really annoying for the player I use an event which checks if the Sprite's X (or Y) is less or equal to a max or min value and then if it's true I set the sprite's X (or Y) to that value. The ship can't move past that point, but when players wants to go away there is a slight delay.

    I think its easy fix for this one. Its in the Acceleration and Deceleration. If you set Acceleration to 10000 and Deceleration to 10000 in your ship object you will see the delay from moving away from the wall gone.

    The other thing you could look at is the checks you have for you ship and the walls.

    Ship.X Less or equal 50 then you change the Ship.X to 50.

    Which makes a little loop. Maybe set the Ship.X to 51

    By the way I like your graphics. I wish I could make my own graphics like that.

  • Thanks TheInstance for taking a close look in to this.

  • I think this is what you are looking for. I took out the bullet behavior, but i think it will work with it too. It will show you the total Distance Travelled for your object.

    link: http://www.savefile.com/files/1649760

    Edit:

    I see I forgot to put in two lines of code to reset the OldX and OldY when the object is remade after it goes out of the layout. It work fine untill you go out of the layout.

  • 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

  • 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.

Maxum's avatar

Maxum

Member since 7 May, 2008

None one is following Maxum yet!

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies