dop2000's Forum Posts

  • You need to post your project file or a screenshot of your events.

  • Bullet behavior is not a very good choice for this game, where you need to move between walls with pixel-perfect precision. Tiled Movement works much better, have a look:

    dropbox.com/s/faxzep882wm43gw/GoingIntoWall-fixed.c3p

  • Simple Bullet behavior should do the trick. Set "Set angle=No" in Bullet properties, if you don't want objects to rotate. When object is created, set Bullet angle of motion to 90 degrees.

  • Even with all these explanations I don't understand how all this is supposed to work. And I don't see where you are searching for the letter "a" in your code.

    Anyway, just follow my suggestions: For the first task, check if the word exist in the array, if not - add it to the array. For the second task, to check if the word contains letter "a", use find(word,"a")>=0 expression.

  • Variable text="your list of words here"
    Variable counter=0
    
    Repeat tokencount(text, " ")-1 times
    	if find(tokenat(text, loopindex, " "), "a")>=0
    		Add 1 to counter
    
    
  • Did you post the correct file? I have no idea what's going on in your code. I don't see the list of words in a string variable, I don't see your attempt to loop through these words and search for the letter "A".

  • You keep asking very similar questions and never post your projects. Searching for words containing letter "a" is not much different from what you asked here.

    You need to show what have you tried, and we'll tell you how to fix it.

  • If this happens in preview, press F12, and check if there are any errors in Console tab.

  • Even shorter:

    On Tap on SB_BT_FPS_Select
    	Set Var_HUD to (Var_HUD=0)
    	Checkbox set animation frame to Var_HUD
    
  • As far as I understand, "Eat them all" demo replicates the same AI for ghosts as in the original Pacman. You can move the ghost with any behavior your like - 8direction, Bullet, MoveTo, TileMovement. The difficult part is how to chase the player and run away from the player.

    The absolute minimum I guess is this - choose Bullet direction at random with choose(0,90,180,270), move in that direction, on collision with wall choose again. Ghost will just be wondering around.

  • 1. Loop through all words in the string with tokencount/tokenat (I hope you already know how to do it).

    Add each word to an array. Before adding check if this array already contains this word. If it does - increase the duplicate word counter and don't add the word into the array.

    2. Again, loop through words and use find(word,"a")>=0 expression to check if the word contains letter "a"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You don't need to increase layout size, you can increase layout margins.

  • Configure the grid in layout editor, set snap to grid, create one row of buttons, copy-paste it as many times as you need. Should only take you a few minutes.

    If you create buttons in the correct order (from left to right, then copy-paste this row down), you can then automatically assign level numbers to them, for example:

    LevelText set text to "Level "&(self.IID+1)

    .

    This method is actually much easier than what you've been doing. Dynamic list generation as in my demo is used when the number of records is unknown. But since you know how many levels are in your game, it's easier to create buttons manually.

  • No worries!

    If you don't have too many level buttons, it may be easier to place them on the layout manually. Configure the grid, set snap to grid, create one row of buttons, copy-paste it as many times as you need. Should only take you a few minutes. And then just stretch the Panel area to cover all buttons.

  • Are you saving/loading the game, or writing/reading anything to local storage?

    You need to post your project file or screenshot of events, not an exported game.