ketramtu18's Recent Forum Activity

  • I have a sprite, how do I make effect to make it turn around the X or Y axis?

  • I make four games. I played them with specific score 4,5,6,7. How do I save the score in my pc, I want to see the total number of scores and games at the end of the day?

  • Hi all, I download a font in google font. I make a game by this font. When I send my game to my friend, I must intall this font first. I don't want to do that. How to import this font in my game when running on any device also use that font without having to install?

  • I have a sprite, a city map. How to make the sprite move randomly on the street, change direction when it hit a the wall?

  • I have a map, a circle as a player and two rectangles as two enemies. How to make these enemies run randomly in the map?

  • To do this you'll want loops, an an array will make it easy too. Add an array to your project with a Width of 5, a Height of 5, and a Depth of 1. The array can be seen as a 'spreadsheet' where you store the result of each turn. When a player places a piece, fill the appropriate cell in the array with the appropriate value. For example:

    > The YELLOW player's turn, they have placed a piece at X:
    .....
    .YYX.
    ..B..
    ..B..
    .....
    
    Array > Set at x,y > X: 3, Y: 1, Value: "yellow" [/code:3o94uufb]
    
    Running this at the end of each turn will make it much easier to check for a win-state - which is what we check for next. There are a lot of ways to do this, but here's what I can think of:
    
    [code:3o94uufb]
    Array > For each element (xy)
    System > Compare two values > 
    First Value: Array.At( Array.CurX - 1 , Array.CurY )&Array.At( Array.CurX  , Array.CurY )&Array.At( Array.CurX + 1 , Array.CurY ) = "yellowyellowyellow" | Array.At( Array.CurX , Array.CurY + 1 )&Array.At( Array.CurX  , Array.CurY )&Array.At( Array.CurX , Array.CurY - 1 ) = "yellowyellowyellow" | Array.At( Array.CurX - 1 , Array.CurY )&Array.At( Array.CurX  , Array.CurY )&Array.At( Array.CurX + 1 , Array.CurY ) = "blueblueblue" | Array.At( Array.CurX , Array.CurY + 1 )&Array.At( Array.CurX  , Array.CurY )&Array.At( Array.CurX , Array.CurY - 1 ) = "blueblueblue"
    Second Value: 1
    [/code:3o94uufb]
    
    This seems pretty long-winded but it's actually a single event, which is nice. The 'For each element (xy)' action means the event will be run for every cell in the Array's x,y dimension. The first of the two values to compare is a long 'or' expression - each vertical line '|' character can be read as 'or'. The conditions in the expression create strings that represent the orthogonal lines through the current cell, and compare them to strings that define a win-state, eg: "blueblueblue" or "yellowyellowyellow". Because they are part of an 'or' expression, if any of the conditions in this expression are met, the output of the expression will be "1" - so the second value with which to compare the first should just be "1".
    
    Place whatever actions go in your win condition into this action - good luck! What a fun little problem.
    

    Thanks,

    I did it but it only checked horizontally and vertically, but how to check in diagonally?

  • I have a 5*5 board, When I click the first time, make a blue ball, click the second, make a yellow ball , how to check when there are 3 blue or yellow ball in a row (vertically, horizontally, or diagonally)?

  • I have four sprites with different sizes. I want to create them randomly in a row and have a same distance.

    Example: A (width: 10), B (width: 20), C (width: 30), D (width: 5)

    -> A (10) B (10) D (10) C (10): distance between two sprites

    -> D (10) B (10) C (10) A

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a sprite as bullet and a sprite A. I want the bullet move in an arc to position of A when the mouse released and have a line show the path of bullet when the mouse is down.

  • Lets do some advanced picking.

    Fully commented for a change.

    https://www.dropbox.com/s/6ip4xshf294ti ... .capx?dl=0

    Thanks for your help but I can't open your link. Can you give me another link?

  • I have 4 texts A,B,C,D. They have the same Y coordinates. I drag D to the position of A. The result I want is D,B,C,A or D,A,B,C. How to do that?

  • Example:

    • AAABBBBCCC
    • AAABBBCCC

    I want to do the same example text. Can anybody help me?

ketramtu18's avatar

ketramtu18

Member since 9 May, 2017

None one is following ketramtu18 yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies