dcrew's Forum Posts

  • Seems like it might be useful, thanks!

    No problem! Thank-you for thanking me! Thank-ception! :D

  • Ex:

    Run1

    Run2

    Run3 etc...

    Meaning that you can set Sprite animation to "Run" & loopindex("getanimations").

    But once again, you would have to spread the switching of animations through several ticks, not just in a for loop.

    Something more like :

    glob var animIndex

    Animations name setted as indicated earlier

    Sprite: On any animation finished

    -> System: Add 1 to animIndex

    -> Sprite: set animation to "Run" & animIndex

    (opt) -> Sprite: play animation

    This should do the trick and doesn't require new ACE.

    I have this already.

    You're clearly not understanding correctly, I WANT the animations to have proper names, not "a1" and "a2" etc what I have now. this I want so the user doesn't have to worry which animation is what etc in my game.

    for example: an m4a1 animation I want to have the name "M4A1 Assault Rifle" not "a87".

    I'm pretty sure it wouldn't be hard to add.

  • There should be an expression to get the amount of animations in a sprite, y'know? Like 'FrameCount' there should be one for 'AnimationCount' also animations should have indexes, so I can retrieve an animation name by using an index number to my advantage.

    These reasons are because I have like 100+ animations in my sprite, and during runtime I want to be able to loop 0 to AnimationCount. I'll make an example:

    -Start of Frame

    +For "getanimations" from 0 to Sprite.AnimationCount     

    =Text.SetText "Text.Text & newline & Sprite.GetAnimationNameFromIndex(loopindex("getanimations"))"

    also I have events that need to access certain animation names specified indexes during runtime.

    Thanks!

  • No answers?

  • Isn't it very convienient that near enough the same time you asked mine was released?

    Here: http://www.scirra.com/forum/easy-trajectory-w-wind_topic47971.html

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This cost me the effort of studying A Level maths so please thank and leave a comment! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Size: 2 Events (1 is for debug text)

    Difficulty: Very Easy

    Hello, this is Dcrew here!

    Here is my trajectory projectile motion method with Wind!! It's not true trajectory, it's my own. That I have come along with and this way is much simpler and easier to understand, yet works just as good (maybe even faster).

    Results (Dependant on where you Click on the screen)

    <img src="http://s17.postimage.org/nwzag37xb/image.png" border="0">

    The Code:

    <img src="http://s7.postimage.org/5ulgrmk1n/image.png" border="0">

    <font color="blue">Download</font>: Click Here! <font color="red">(Mediafire)</font>

    Size: 4,67 KB

  • Hello, I am developing a project for another game and it's an animation creator.

    I was wondering, how can I save the sprites that get placed by the user and the different frames etc.

    I was thinking array but you can't save arrays, then I thought web-storage but I don't think it will be optifiable via storing a massive loads of text (Per frame it could be 5000+ characters), And the user might animate like 800 frames.

    So that'd be 5000x800 characters in one string.

    Any recommendments?

  • Should be fixed in next build!

    Thank-you ;)

  • Hello, When I right click and add a new animation in a Sprite. it expands all folders in the sprite. and it's annoying when you have a folder with 25+ sprites that doesn't need to be opened right then.

    I'm sure it's an easy fix.

  • type: General Function

    expression: Split(string1, string2, index)

    example usage:

    MyString1 = "hi;hello;hey"

    MyString2 = Split(MyString1, ";", 0) - (Would return "hi")

    MyString2 = Split(MyString1, ";", 1) - (Would return "hello")

    MyString2 = Split(MyString1, ";", 2) - (Would return "hey")

    what it does:

    string1 is the string to split

    string2 is the string/character to split string1 by

    index is the index of the split to return

    another example:

    Str1 = "mr,mrs,miss"

    Str2 = Split(Str1, ",", 1) - would return "mrs"

    Hope this is understandable!

    Thank-you!

  • For what it's worth, regarding the OR plug-in, there is no good way to dynamically define the number of expressions in a condition. After a number of PMs with Ashley, he convinced me it would be easier to wait for him to build it into C2, rather than try to code the clunky dynamic method I was working on.

    dcrew, I can add more conditions to the plug-in, i.e. an OR-3 with 3 expressions, an OR-4 with 4 expression, etc., if that would help you get by for now. Otherwise, we can just wait until it gets implemented (but not before families please! :D).

    This is already solved, and Ashley already fixed it. I just do this now:

    <img src="http://screensnapr.com/e/EqI8xc.png" border="0" />

  • Save your world as a serialized string.

    Each string is then a different key in the webstorage.

    Okay, also is the webstorage temporary? Does it ever get deleted? / Does the saved data ever get deleted?

  • But what if I want to save multiple different worlds.

  • I see how it works. I thought the webstorage wouldn't work because there was like no save function.