UpendraWatwe's Forum Posts

  • 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 ?

  • 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"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks AllanR , I will try out the UID and IID suggestions you gave.

    How do I select the objects by UID ?

  • I have a set of 50 or so images organised in 10 layouts with 5 animation frames shown as separate images on each layout.

    I want to flash, increase the scale and animate the specific sprite that is tapped / clicked by the user.

    I have already done it by repeating the same set of events / actions on each event sheet, but thats making the whole project bulky . I wanted to use includes and functions so I can write on first event sheet and repeat that on each of the next event sheets.

    but when I did that all of the 5 images shown on the screen start flashing, scaling and animating.

    --

    Here is what I have tried.

    I set an instance variable "instanceIndex" for each image sprite and gave them numbers 1, through 5.

    On the individual event sheets, I save the value of "InstanceIndex" to a global variable "selectedInstance" and then call a function passing it the parameter sprite.InstanceIndex.

    However the values that I set in "InstanceIndex" are not getting saved to global variable (i also showed it as the text in a text box). The text box and "SelectedInstance" keep getting set to "0"..

    https://goo.gl/photos/x69enV1WB2Jyb6nWA

    https://goo.gl/photos/P4RnYqLkygarH1FK7

    https://goo.gl/photos/kWW5Ze7JTvkc4MLo7

    What may I be doing wrong ?

  • briggybros.. could you post the solution that worked for you ? I am faced with similar issue and keep hitting the 404 msg.