TheNewGuy's Forum Posts

  • shinkan I have one other question if I use the overlap at offset wont that just check once?

    Or will I have to call for every tick bro. I want the player to be able to stop incoming rounds by placing a tile infront of the gun but when he removes the tile the gun shoots again.

  • - Sprite: Is overlapping at offset

    - distance(x1,y1,x2,y2)

    - use second sprite to test for collisions.

    All depends on your game and what you want to do.

    why did you ask about "without using arrays" ?

    shinkan will this method be able to check if the space is free as a constant. For instance when I place a tile in front of it,it will stop shooting?

    And I was saying no arrays because the last time I tried to get information someone told me to use arrays

  • Whatsup peeps long time no talk!

    I was wondering how I can check if a space is free without using arrays.

    I want to make a gun shoot if space in front of it is free. But the space can be blocked at any time

    I want to make sure that this is checking every tick unless there is another way

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dsarchy thank you for your reply but that is something I have seen quite a bit. Not everyone learns the same way. What might be laid out in front of you as basic to some, could be hard to learn for others.

    Im just looking for some tips on expressions that would benefit me in my case.

    I know the basics.I just need some helpful tips on good expressions to use.

  • Whatsup peeps!! I finally learned the basics about arrays and how to place them. Thank you California mystazsea brent_hamel

    I have a few more questions about arrays that need to be asked.Ok here they are

    1. I understand how to set individual tiles through SET VALUE AT (1,1) to 1

    But what is another function for me to use to fill the layout from a certain point specified.

    for instance I have a 3200x3200 size layout,In array format that is 100x100 because im using 32x32 size pixels lets say I wanted to start my tile generation at (50,1) to 1 how could I just go ahead and tile the rest of the way down.

    2.how can i be more specific with how I generate tiles. For example if i want to make my ground have 5 rows of dirt then for the next 5 after that switch to stone and so on.

    3.How can i make better random generation?

    Basically I just need to know the functions to call on to make this alittle easier. When I say functions I could also mean Expressions im kinda confused of the 2for some reason.

  • California mystazsea brent_hamel

    Thank all of you guys for your replies!

    I have actually learned the basics from the capX file that California posted.

    That is all I needed to see to grasp how to use arrays for Terrain. I still have a few questions.But I will keep them to myself for now. I want to test around with this. Also mystazsea you mentioned PUSH TO BACK how do i go about using this function?

  • Also Whiteclaws I asked for a tutorial that was not showing RANDOM GENERATION. I dont need random I need SPECIFIC GENERATION.

    That tutorial showed how to make tiles appear through an array at random in 3 events. Im sure its even easier if I dont want random. Im sorry if im confusing im not familiar with what im even talking about

  • brent_hamel

    Im not sure what you mean by that. The only way I know how is the way I learned from Whiteclaws post. I am trying to figure out how to Precisely Place Tiles so they are only showing up on half of my layout. My layout is 6400x6400 I need the bottom half which is 3200x3200 filled with tiles

  • Yann Kyatric

    Can someone break this down to me

  • Whiteclaws after remaking and understanding how to use this type of array.

    I need to know how do i precisely add the tiles to a certain place?

    In the tutorial he shows you how to fill your whole layout with tiles which would be good for isometric but im making a platformer and I need to know how to make the terrain start generating at about half of my layout? I dont want tiles to be in the sky I just need half of my layout with tiles.

    my layout is 6400x6400

  • This one pretty much covers everything you need to know about arrays, have you checked it?

    This one:

    https://www.scirra.com/tutorials/307/arrays-for-beginners

    Yes California this is the first one I seen but it doesn't cover Tiling with arrays in depth. It shows text which confused me. And it seems like however that person explained it is hard for me to comprehend. Im not lame I just need a different teacher.

  • Thank you both for your willingness to help!!!

    I am now going to finally learning this. If I do have a question about arrays can i come to one of you directly instead of waiting on the forums? And what ever happened to the chatrooms?

    Whiteclaws California

  • California I need an exact name or this does not help me dude.

    Why is it so hard to get information about this! Im losing my mind

    thanks for the reply atleast you cared to stop in and reply.

    And also these forums are buggy as hell

  • ludei You are the best hands down.I love cocoon more and more with each passing day.

  • Cool stuff,The main thing I need to do California is learn the basics and most of these tutorials are not good for beginners with arrays like myself.