UpendraWatwe's Recent Forum Activity

  • Thanks Wastrel

  • thx much jojoe

  • Can I copy a layout in some other project into my existing project without having to recreate the layout and event sheet ?

    I know that evensheet contents can be copied from one sheet to another, but how do I add layouts and eventsheets created in other projects into my project ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The last time I deleted the sounds and reimported, I had fewer files, now I have over 300 files.. isnt there a better way to select and delete all files from sounds folder than hitting delete for those many files ?

  • I have a sprite with 10 animation frames and I have 10 copies of he sprite each set to a different initial frame .

    When I click on any sprite , I want a different music file to play . I have the names of the music files stored in an array and I am using <sprite name>.animationframe to identify which element of the array contains name of the music file to play.

    Using "pick instance with UID Function.Param(0)", I can identify the clicked on sprite for flash / rotation resize etc effects & the music associated with all frames plays , but I also hear the music associated with the first frame , along with the music for individual other frames.

    I sorted the part where music of first sprite plays with the music for others by setting the "mute effect " to the music file for the first sprite, but now I want to remove the mute effect when user cliks on the first sprite.

    This led me to think I need to know the <sprite name>.AnimationFrame which will give the music file to conditionally mute/unmute a music file.

    Somehow when I set a text box text to <sprite name>.AnimationFrame, it always shows the value "0" being the initial frame of the first sprite.

    I need to get numbers like so -

    2 when I click on 3rd sprite,

    0 when I click the first sprite, ,

    5 when I click the 6th sprite so that the music associated with the first sprite doesn't play alongwith others, but plays when the first if clicked.

    What am I doing wrong ?

  • ,

    I found a solution using

    event condition1....action 1

    else

    event condition2....action 2

    https://drive.google.com/file/d/0B_3gk1SvtQWVSlB0T2FhRnZnNEk/view?usp=sharing

  • codah ,@maordany ,

    I am facing a similar case where there are 7 outcomes based on the values of a numeric variable.

    Question When I try using if else- do I add the second and subsequent conditions by first adding an else block and then editing that condition into a comparison ? or do I ad the second comparison as a sib event to the else ?

    In any case I am not able to add the else for the third condition.. Any help ?

    I tried using a plugin developed by Wastrel but it doesn't show up even after being added to the plugins folder.

  • I have a global variable that increases from value 1 to 7 .

    Based on the value, First a set of sprites is generated and the animation frame numbers are set for each sprite generated .

    Second, I want to load some strings into a specific array in each case.

    The array contains names of audio files to be played when user clicks on the sprite .

    Error :

    Sprites are generated for each set but audio plays only for first set.

    Possible points of error

    1. variable not increasing in value = > no because the sprites to be generated are correct for each value of variable

    2. array not loaded with file names => no because the audio plays correctly in first set of audio files(not possible unless audio file names correctly loaded).

    3. code to play audio is not right => no because the audio plays correctly in first set of audio files.

    4. the system -- compare variable to value 1 -- actions ; else compare variable to value2 -- actions is not working correctly.

    How do I implement his ?

  • I have a for loop that runs from 1 to 5.

    For some reason, the loop runs only for first 3 iterations.

    https://drive.google.com/file/d/0B_3gk1SvtQWVV0hkZUh6Mi1mVXc/view?usp=sharing

    Any help would be apreciated.

    EDIT >>>

    Found the bug.. works now..

  • AllanR Thanks a ton.. You really helped me solve a HUGE issue. !!! Take a bow.

  • AllanR I am using the "sprite" object to create the images and loading the images by breaking a larger image into image sprites.

    Should I set the image from individual separate files ?

  • AllanR I dont see "Pick By Unique ID" under "Misc" when I add event for the image sprite.

    I see "destroy" "set from JSON" "Set Collisions Enabled" and "Spawn another object"

UpendraWatwe's avatar

UpendraWatwe

Member since 13 Jan, 2015

None one is following UpendraWatwe yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies