ah yea, my bad.
Wouldn't it be the case if the loop ran without the sub event ever being true the other function should be called.
len(text) gives you the length of the text
tokecount(text," ") gives you how many words are in the text.
with tokenat(text,index," ") you can get a specific word of the text based on its index
With these you can create a system to do what you want.
To read more about system expressions, check this:
https://www.construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
In this case it would just work like ROJO said.
But there are async functions for this purpose as well, set the function to asyncronous in the function dialog (not the call dialog).
Then you can use wait for previous action after the function call.
you can read about it on the documentation.
https://www.construct.net/en/make-games/manuals/construct-3/project-primitives/events/functions
Yea, don't wait...
Also, I have worked with Mikals Spine plug-in and it works great.
Develop games in your browser. Powerful, performant & highly capable.
I did a quick test using drawing canvas snapshot to read the rgb values of the image and then I create a tilemap with over 30k tiles based on the rgb data of the given pixels.
Took only a second to generate (including the async snapshot).
would be the same as the first solution, but instead of just subtracting dt subtract dt/fuelEfficiency every tick the car is moving.
(I updated the project and added fuelEfficiency, same link)
Wasn't sure what exactly you wanted so here are two different solutions
https://drive.google.com/file/d/19bya5YNtoExw7D3T8KDGZXnlV8etefr9/view?usp=sharing
check this: https://drive.google.com/file/d/1gIelMGvUySSHpELYSb_U-a0KvQmnI0Fo/view?usp=sharing
I changed it to use Regular mode on the timer instead of once (as this is what you are going for here).
That seems to keep them in sync
I think the image on the 3d face will match the instances current frame it is copying the image from.
So to change the frame on the 3d-objects face you would need to change the frame of the specific sprite/tilemap.
Best working and best performing solution I had found for Vampire Survivor like enemy behavior is using phyics.
Threw together a little example for you: (edit: updated version)
https://drive.google.com/file/d/1xL7J-6fcYV0DROR24FHLW_w1j78QgD4a/view?usp=sharing
Let me know if this works for you! :)
there is family.objectTypeName and there is also pick last created which you could use as a sub-event
I wonder if this will work when creating new objects then calling function in same event. Or, if that doesn't work, adding a wait 0 seconds before calling the function. When I'm home, I'll be playing around with this!
seems to work!
Member since 6 Jul, 2017