Hey there, if you have the full C3 version, put your cards in a family, then use this family to compare which card is displayed before the one selected, and move the selected card on top of it, this should be doable with a variable that determine each card order in the player hand
Ok so when you request a project file, you have to specify a tag, after that AJAX has a condition to check when a tag action is complete :
On "your tag" completed :
YourArray > Load from Json (this is where you use AJAX.LastData expression)
Okay I see now, and it should be stopped by solids I guess?
Edit : looks like you found your solution ~
Oh okay, so for example in mouse direction? Or any X? And if you release the key the laser will go away right? Like a spray
Hey there, first of all, what do your laser sprite looks like? Does it need to go in straight line or with angle? By continuous you mean it must travel all the way to the windows border?
Develop games in your browser. Powerful, performant & highly capable.
You do not have permission to view this post
Hey there, the way to proceed is to use the AJAX plugin to request the content of the Json in project files, once it is complete, use AJAX.LastData expression when loading your array from Json
You can share it here : construct.net/en/forum/construct-3/your-construct-creations-9 :)
I modified DiegoM example to get the result you wanted : drive.google.com/file/d/1osyoVyE536Zb4pf1I7THuT7STQ6YhgxZ/view
I changed and added a few things, everything is detailed in the project, don't hesitate to ask if you need more details ~
EDIT : I fixed a few things, notably a mistake that prevented to edit the range of the line
Hey there, this is sadly the wrong topic to share your game, there is a topic designed for sharing your C3 creations
Hey there, this is definitely not an easy task, but I might have an idea, I'll give it a shot when I have some time, unless someone bring a solution in the meantime
Instead of using For each element, which will pick each element of the array as it says, you should only pick a random one
Member since 3 Apr, 2016