This will give you animation name without the last character:
Left(AnimationName, len(AnimationName)-1)
If you know the string length, you can use fixed number:
Left(AnimationName, 5)
You need to position the panel above all store sprites with some padding. Also, it seems like TouchSpeedAt expression is not available in "On drop" event in C3, so I changed it to "On any touch end".
See this updated file:
dropbox.com/s/b50u9il0pbj300g/ScrollTestApp.c3p
speed = distance(0, 0, Sprite.Physics.velocityX, Sprite.Physics.velocityY)
Please share your project file.
"Origin" is the image point #0, you set it in the Animation Editor.
Does it work smoothly when you disable this event?
Check position of the Origin image point, it should be at the top. Make sure to set "Axis: Vertical" in Drag and Drop behavior and "Set angle: No" in Bullet.
You did see R0J0's example, why are you asking the same question again and again? Just use the bottom part of the sine function (event 2 in that example), or fill a rectangular area on the tilemap and then erase a big circle from it (event 5 in the example).
You can still see the text if you press Ctrl-A and the mouse cursor changes when over the textbox. Not to mention all other problems associated with form controls. If you just want to detect when a passphrase or a cheat code is typed, here is how I did it in my game:
There is probably an easier way to do this, but this also seems to work:
dropbox.com/s/bgyqaqdq0pa0baw/Clock2.capx
gabmusic Did you read the entire post? There are more examples, showing different methods of making complex shapes with tilemap.
Develop games in your browser. Powerful, performant & highly capable.
This can be done much-much easier, in literally two events. Put all your store sprites into a family, add Pin behavior to it, pin family to a panel with Drag And Drop behavior and that's it!
Here is an example (with added inertia scrolling):
dropbox.com/s/50cl8ipks3wyr95/ScrollingList.capx
Have you seen this post?
construct.net/en/forum/construct-2/how-do-i-18/3d-carousel-42745/page-2
There are cool examples by R0J0hound which you may be able to modify for your needs.
MGGD If you are not using many other form control objects, I recommend making your own slider bar with two sprites and drag and drop behavior. It's easier than trying to style it with CSS. Besides, SliderBar is a DOM element, and there are lots of issues with them in Construct - they don't scroll well, mess up mouse and touch events etc.
Member since 26 May, 2016