dop2000's Forum Posts

  • You do not have permission to view this post

  • Are both bullets on the same layer? Maybe one is on a layer with a different scale and that's why it's moving faster?

    You need to upload the project to any file sharing service - google drive, dropbox, mega.nz etc.

  • I don't see any issues in the code. And you have an event that destroys the bullet if its speed >400, so bullets can not travel faster.

    Try running the project in debug mode, when second bullet is spawned, pause the game and compare both bullet instances - check that they are on the same layer, compare their speed etc. Maybe you'll find the problem.

    If this doesn't help, please share your project file. You can remove everything non-essential from it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, it's a bug on the forum. You can insert the image if you edit your own comment. Or use Imgur.

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