VIKINGS's Recent Forum Activity

  • I can't do that blackhornet I have hundreds of objects and for each of them those 3 variables differ. So first of all it would take forever to do and second of all I don't even see how that would help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello World,

    Please check the capx below. As you can see I have 2 families, one with monsters and one with ammo. And each member of each family has different properties defined in instance variables for each object ammo/monster type(the shape it is, circle, square, etc.), what color it has, and if it has any signs on it.

    Then you will see I have one event AllAmmo on collision with AllMonsters.

    I would like someone to please make the code there to show me how to do the following:

    • when an ammo colides with a monster pick only the 2 members of each family that have just collided(as I understand C2 does this automatically because it's a triggered event and because of how families work?)
    • then(on that collision) compare the instance variables of just those 2 members that have just colided to see if they are equal ammotype=monstertype, color=color, sign=sign(and remember these variables are on each object itself, not on the family)
    • if all variables are equal call function x, else(if any of them is not equal) call function y

    Capx link: https://www.dropbox.com/s/juvesdjguknqs ... .capx?dl=0

    If you have any questions let me know. Thank you.

  • Oh dear. K, I'll try mindfaQ .

  • Thank you rickyandrean , glad you enjoy them. I'm working on my forth now, should be out in a couple of weeks.

  • Woow, that sounds super complicated.... I was hoping for something simpler. I'll see if I can make any of it work, thanks mindfaQ .

    Any other suggestions are greatly appreciated guys.

  • Hello World,

    Check out the capx below please, it's an aiming system for a game I'm working on. Click on a B sprite and aim, if you move it slowly you will see the framerate stay pretty constant, however if you start moving it fast the frame drops quite considerably.

    Is there anything else I can do to improve it performance wise?

    Thank you.

    Link: https://www.dropbox.com/s/vonpi3icldzen ... 2.rar?dl=0

  • Looks awesome R0J0hound . I'll go with it, thank you very much.

  • Ok, here's a question LittleStain , R0J0hound , and everyone else.

    What if I take each frame and make it a separate object on it's own? Would that make things easier, could I then put them in an array and do that random thing or what?

    And would that have any drawbacks, specially performance wise?

  • bump.

  • Thank you. I really appreciate the effort R0J0hound , sadly it seems you're right, it doesn't look to good. Can you please modify it and try it with your suggestions? Except the one where all objects have the same number of frames, I really can't have/do that unfortunately.

    Olso another thing to keep in mind please,(cause I played around a bit with your loppindex params and I'm not sure in the end if I could make it work in my game) is:

    (by the way using params is a new experience for me, I've never used params on functions before, don't really understand how they work )

    • when a row of monsters/ammo gets created it's "inactive" it's basically just to show the player what's coming next(like you would see the next block that's gonna come in tetris), the sprites will be 45x45 and their first move on y will be of 60px
    • when they move the first time(60px) they will get resized to 65x65 and every time they move on y after that they will be moving 71px instead of 60.

    I'm afraid, is that a bit more flexibility then your example allows for?

    Here's a pic of my movement and resizing code so you can see exactly what I'm talking about.

  • While it's true C2 is a 2d engine and therefore you can't create 3d games in it, you can however create pseudo-3d games, some of which look/work quite well.

    It seems quite complicated though, at least from what I've read on the subject so far. I'd recommend you start with this tutorial, then google for some others.

    I do however strongly suggest that you first try to create a couple of simple 2d games to at least get the grasp of things. Whatever you decide I wish you good luck.

  • On letterbox mode have an event on start of layout scroll to x, y then set those values depending on your layout size.

    For example if your layout size is 640x480 then that event would be "on start of layout | scroll to x:320 y:240

    You have to put that event in the event sheets of all the layouts you have, and if all your layouts are the same size then you can just create a seperate event sheet(no layout needed) put the code there and then include that event sheet in all your other event sheet.

VIKINGS's avatar

VIKINGS

Member since 13 Feb, 2014

None one is following VIKINGS yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies