oosyrag's Forum Posts

  • I'm going to venture a guess that this has to do with not being able to pick a newly generated object until the next top level event.

  • Here is a rough capx.

    https://www.dropbox.com/s/7u806ikrra0xg ... .capx?dl=0

    You'll need to work out some things like how you want the speed to be when they keep trying to sprint near 0 stamina, or the rate of stamina depletion and regeneration, and also if you want to use dt.

  • Every tick         | Set MaximumSpeed to max(50,MaximumSpeed-0.5)
    MaximumSpeed > 50  |
    Shift is Not Down  |
    [/code:2krq6s8c]
    
    Acceleration will be based on similar, or whatever behavior you are using to move in the first place.
  • I didn't even notice that expression! That is a much better solution: all done with one event.

  • This one is a little bit tricky. Everything you need to manipulate individual characters in a string can be found in the text section of system expressions.

    https://www.scirra.com/manual/126/system-expressions

    You need each individual character of a word. The logic would go something like this:

    Get the first letter of your word with left(word,1). You'll want to store that in a manner of your choosing, but I recommend pushing it into an array.

    Then you need to take that letter out of the original word by setting text to right(word,len(word)-1). This means to set the text to the rightmost characters of the word length minus one.

    Repeat until your word has no more letters (conditions- WHILE, len(word)>0).Now you have all the letters of your word individually in order in an array to work with.

    Try working with that and ask again of you don't know how to proceed, as displaying the word again in pieces that can be manipulated and multiplayer are pretty complicated too.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use tokencount to see if the word exists in your document after you import your document as a project file.

    https://www.scirra.com/manual/126/system-expressions

    https://www.scirra.com/manual/141/files

    Edit: there is also a find() expression you can use, just discovered that after reading through the system expressions again.

  • Shift Is Down   | Set Maximum Speed to 100
    Stamina > 0     | Set Stamina to max(0,Stamina-1)
    
    Stamina =0     | Set Maximum Speed to 50 
    [/code:3uy3y3el]
  • I've been away, see if this helps:

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

  • Or better yet : just plain set angle to angle(player.x,player.y,enemy.x,enemy.y)

  • For set angle towards method, that is the easy one. You can use Set Angle Towards player, then set Angle to Self.Angle+180 right after that.

  • Try saving the UID of object created to a variable when it is created. Then add a Pick by unique ID condition to position that specific instance of the object under your mouse or place it.

  • It shouldn't be a big deal to open a bunch in photoshop if you're going to be editing frames manually anyway. If you're going to run through a regular process on all of them like lighting, color, or effect adjustments, you can set up a batch script in photoshop too, basically do the same thing to a set of files, similar to if you were to apply an effect on an entire spreadsheet.

  • Hmm... you can save your project in a project folder instead of a capx, then you can access all your sprites and animation frames directly from the folder for editing in another program. They won't be in a sprite sheet though.

  • There are a few ways to do this, depending on your situation.

    Do you require pathfinding, or are they free to run straight away from you?

    I'm assuming you already have a system in place to have the baddies run towards you. How are you doing this?

    Try having invisible "flee target" spots around the level. When they need to flee, pathfind to the one closest to them and farthest from the player. Or something along those lines. You'll probably need to add some conditions to ensure they don't flee towards a spot that the player is already along the path to.

    You can use another invisible "avoid zone" around the player for that. When your baddie picks a spot to flee, draw a line between that spot and the baddie to see if it collides with the avoid zone. If it does, that means the player is in the way and it should probably go somewhere else.

    Along the lines of the "avoid zone", you could probably update it as a solid in terms of pathfinding every once in a while, then the baddie using pathfinding definitely won't go there.

  • You are looking in the right direction, effects were definitely used for that game.

    You'll need to experiment a bit on your own regarding layering effects and sprites to get the effect you want.

    Assuming what you mean by a wave as in having the effect spread from a point rather than the entire screen, remember you can use effects on individual layers or objects as well. If you also use blending modes, you should be able to get the overall effect you are looking for. (Use the wave effect on a sprite with blending, then increase the sprite size to grow the wave.)

    https://www.scirra.com/manual/146/effects