You need to wait 1 tick after creating object instances, before trying to access them. Try changing the code like this:
OP uses example from this post:
construct.net/en/forum/construct-2/how-do-i-18/simple-scorched-earth-worms-ga-129595
It's probably the only way to make destructible terrain in Construct, but of course the tilemap should not be very big.
Please post your project or a screenshot of your code, showing both functions.
Another option is to use blend modes (Destination Atop for example). See "Blend modes" demo project in C3.
You can also keep the tilemap off-screen and paste a small portion of it onto Drawing Canvas, but I don't know if the performance will be any good.
First of all, looks like you are using "8-direction" behavior, and not "Custom movement" behavior, they are different.
Why do you randomly change MoveX and MoveY every 0.5s?
Is this a tile-based game, can player or enemy move diagonally? If you simply want your enemies to chase/follow the player, there are easier ways to do this. See this demo:
dropbox.com/s/ag21nmvg1cjv471/Follower2.capx
You need to use angle() expression.
For example:
angle(player.x, player.y, target.x, target.y) is within 45 degrees of 90 Player set animation to "FaceDown"
Or you can use "Between angles" condition - angle(..) is between 45 and 135
Here is a very simple demo:
But if your game has obstacles, then this follower can get stuck. In this case you will need to use Pathfinding behavior. Try searching the forum for "follower", "chase" etc, there are lots of similar posts with examples.
There are plenty of tutorials and examples posted here, have you tried searching the forum?
construct.net/en/tutorials/drag-and-scroll-the-screen-using-touch-control-1351
construct.net/en/tutorials/itemmenu-scroll-791
dropbox.com/s/50cl8ipks3wyr95/ScrollingList.capx
Develop games in your browser. Powerful, performant & highly capable.
You can find my email here:
construct.net/en/forum/game-development/job-offers-and-team-requests-28/-paid-and-free-programmer-will-130628
I still think it's a bad idea. How are you planning to implement payments? What about the security? How will you handle sensitive data, like customers details, credit cards etc.?
You need to post your project, it's not possible to identify the problem by screenshots.
But more importantly - are you making a real online shop with Construct 3? This is such a weird idea.. Why not use one of many available e-commerce platforms?
Yes, it's always rectangular :)
Don't use Progress Bar object. It's very easy to make a custom progress bar with a sprite or TiledBackground. Simply change its width, for example:
ProgressBar set width to (Self.ImageWidth*progress)
where progress is a number from 0 to 1.
Member since 26 May, 2016