If you want it to shoot only once when left button is clicked - use "On clicked" event.
If you need to continue shooting while the left button is pressed, you can do this:
variable LastShot=0 Mouse Left button is down LastShot<(time-0.5) Player spawn Projectile Set LastShot to time
This will add 0.5s delay between shots.
matrixreal Thanks, it may be a good idea! PMs are disabled on this forum, can you give your email?
Did you restart Construct? You need to do this after adding new addons.
Also, if an addon only supports C2 runtime and your project is using C3 runtime, it will not show up.
The links to addons are in the first part of the tutorial. Also, googling always helps.
If you don't need very realistic physics, you can fake it:
dropbox.com/s/m1g65u76qrw7ean/BirdOnWire.c3p
Copy and paste to another frame, flip, copy and paste back.
Variable text="your text here...." Variable result="" Repeat tokencount(text, " ")-1 times if len(tokenat(text, loopindex, " "))<5 Set result to result & tokenat(text, loopindex, " ") & " " // after the loop - trim to remove space at the end: set result to trim(result)
Develop games in your browser. Powerful, performant & highly capable.
You can split the text using tokenat and tokencount expressions. You will probably need to get rid of all punctuation before doing that (use replace expression).
You can't store multiple words in one variable, you should use an array.
To check the length of each word use len expression.
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
Also, check this demo:
howtoconstructdemos.com/split-text-into-separate-words-c3p
Laura_D Thanks!
Yeah, no one likes ads&IAPs in games, but it's of course a necessity. Maybe when (if) Planet-O-Tron becomes successful, I'll add more ads and become reach :)
I mean there is some mistake in your events, and unless you post a screenshot or share your project file, we can't help you.
There are several ways to do it I guess, here is one:
For each Sprite JSON Set "coordinates"&Sprite.IID to array size 0 JSON Push back Sprite.X to "coordinates"&Sprite.IID JSON Push back Sprite.Y to "coordinates"&Sprite.IID
This will add a bunch of "coordinatesNN" keys, each containing an array with x,y values.
You need to post your project file or a screenshot of your code.
Use "Bullet Set angle of motion" action.
Here is a simple follower example:
howtoconstructdemos.com/simple-follower-for-8-direction-behavior-capx
Try this one:
construct.net/en/tutorials/tic-tac-toe-part-2-185
Also many examples in that last link are for playing against computer AI. Even if you don't know programming languages you might be able to figure out how the code works.
You need to set array size to width=3, height=1, depth=1
If this doesn't fix your issue, please post your project file or a screenshot of events.