IKnowMyStory's Recent Forum Activity

  • I want to change the Textbox Property field ID (optional). Is there way to reset the ID name based on an Run time event not just a manual in the Editor. This is not the UID, nor the IID of Textbox object field created with each object. I am referring to the Properties dialog that has the Properties fields; Text, Placeholder, Tooltip... and at the bottom of the list, "ID (optional)" field which is defined as having the property, "An ID for the control allowing it to be styled with CSS from the HTML." I want to reset the ID name based on a Run time event. Just like I can "Set tooltip", I want the Textbox Set ID (optional) to a new name in order to change its #Name CSS appearance.

    During Edit, Textbox named "Activity" manually set Properties "ID (optional)", to "ActivityA", in order to change its appearance within a single style sheet using a new name ID (optional). I know it is possible to swap between style1.css, style2.css, etc, however, I do not want to create new CSS files for every object's new appearance. If it is possible to change the ID (optional) field, than all that needs to happen is to change the Textbox object pointer to from #Activity" to "#ActivityA" and the new style elements would be applied. With that, I can get a new style for some of the CSS elements without swapping out entire CSS files by just changing the Textbox ID based conditon such as, var Textbox = "Is Active". I know that I can use the builtin "Set CSS style" action to reset each style element. However, my project(s) will have hundreds of these types of action that I do not wish to have to add or edit each one with every minor CSS style change. I would be nice to be able to make global changes to a project by making minor CSS file edits and let the code do the rest. Thanks for any help with this question/desired feature.

    I hope this is just something that I have yet to find because my work life would be much better if it exist. It would be nice to have an object On created ACE option to set the ID also.

    A simple sample of an ACE and the linked CSS style.css data is below.

    Editor

    Textbox named "Activity"

    Set Property ID (optional), = "ActivityA"

    During Run time,

    If Activity Is Active

    Textbox Set ID ActivityA

    Sample CSS file style1.css

    Activity, #ActivityS, #AdditionalText, #Adjective {

    font-size: 14px;

    font-weight: normal;

    text-align: center;

    border-width: 2px;

    border-radius: 20px;

    border-color: rgb(0,0,0)

    }

    #Activity:hover, {

    border-color: rgb(255,0,0)

    }

    #Activity {

    background-color: rgb(255,107,51);

    }

    #ActivityA {

    border-color: rgb(255,0,0);

    }

    #AdditionalText {

    background-color: rgb(255,25,255);

    }

    #Adjective {

    background-color: rgb(127,255,212);

    }

  • Here is a link to a tutorial on how to use collaboration tools with C2.

    How to collaborate on projects with SVN

    https://www.scirra.com/tutorials/537/how-to-collaborate-on-projects-with-svn

  • Just letting others know that the problem with textbox text is effected in the Moveto behavior also. When the textbox begins it move across the screen (I only have it moving to a new X with the same Y), it is as if the text itself has gravity pulling it down out of the textbox and it keeps falling until the textbox frame stops moving. The text reaches the X position but now has fallen to a new lower Y height. If I resize the Chrome window even a little, the text refreshes in the center of the textbox again.

    Just update Chrome and the problem is gone. Not sure why I did not get an auto update.

  • Please investigate the CSS Import download link or site as a possibly hijacked because it attempted to install malware on my computer from a site call Just Hook Up. A tutorial by istavang was recently posted which require the CSS Import. The link needs to be fixed or moved to another site because having third party crap installed on my computer is not something I care to deal with. My ESET security software flag the download site as being on a not trusted list and they were right to warn me. The site cannot be trusted and you may want to move the file to a safe site for downloading.

    I would hope that as a member of the C2 community that I need not fear being sent to download sites that immediately installs malware when I simply need an addon. The site link may have been safe in the past buy seeing a large graphic displaying information about Asian women and then having Just Hook Up software malware try to install tells me that something went wrong.

  • 2 Conditions

    Object 3 -> On collision with Object 1

    Object 2 -> Pin is pinned

    Action

    Object 1 - Distroy

  • R0J0hound

    Great plugin! I found it as I was looking for information on the canvas plugin. It works well for what I am doing in my project when I have a Paster canvas and then paste an section of an image into it. The image clip appears as good as the original image. However, if I resize the canvas during runtime and then paste image to the canvas, the pasted image clip becomes pixelated or loses its original quality. Is this normal because I am stretching the original canvas and therefore even though the pasted image is after resizing the canvas? It is as if I am stretching the new image and causing it to distort. Does this have to do with the WebGl on/off that has been mentioned in prior post. I have tried having WebGl on and off and both still distort the quality of the image when pasted.

    My solution for the problems at this point in my project is to make 21 fixed size Paster canvases. I then limit the resize to one of the 21 fixed canvas sizes depending on the user selecting a change in width, height, or proportional scaling which depends on how much of the original image they want to capture. This works, but I am not sure having 21 canvases at the ready is going to cause problems with overhead. Is there something I am doing wrong or just the nature of WebGl and/or the canvas by default?

    I will post a capx if there is a way to resolve the runtime variable resizing of the Paster canvas.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A good place to start would be to find the Audio analyser example in Programs Files\Contruct2\examples folder. It has an example of the analyser playing a looping music track. If you then go to the manual and search for "analyser" it will give you the link to the information on all the features. Study the "Audio actions: Effects" and the "Audio expressions" sections along with the example capx and it will give you some ideas on how to approach the project.

    I have yet to test my theory, but I think by using the Analyser Effect, you can isolate frequency and their peaks to trigger events. The example demonstrates this using the blue sprite changing its height as the track plays. I do not fully understand everything that is going on and have to Google some of the terminology used because the manual is not designed as a tutorial in sound engineering. Hope this helps as a starting place. I have not had time to get very far with my project yet, so I cannot give you any more guidance at this time. Good luck with your project. I will post my findings as I make progress on find the time to develop a solution for my theoretical idea for creating triggers using sound tracks.

  • It my be helpful to go through this tutorial. I did and was able to get the server to send the PHP file content to my C2 project. However, I have not worked out the solution for C2 push to the server yet. The server is a Moodle LMS (Learning Management System) which I do not fully control and for security reason will not allow me to just push content to it. But if you control the server you maybe able to get it to work bidirectional. Not sure if this is the complete solution but it is a good start.

    The link to the Online High Score Table (AJAX, PHP, MySQL)tutorial by ArcadEd is:

    scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql

  • The other day ALLMarkMade posted a link to a YouTube video that made several references to similar issues that you are having regarding lowering the overall project size from 30meg to 5megs. In the video, the speaker had to lower the project size and one way he suggested was to use JPG files to lower each image's file size. He said it saved him 10megs just by going from PNG to JPG files. Only use PNG if you absolutly need alpha transparency. However, it was pointed out that the video is about a year old, so I am not sure if the PNG vs JPG savings still applies. I need to do more investigating myself for the same reasons you are struggling with your project. I remember a blog by Ashley or Tom posted on the topic of PNG files and how they are being handle in C2 with an update they implemented. It maybe that the PNG to JPG file size difference has already been dealt with. I just have not had the time to do the research yet. Maybe someone in the know could speak to this. Anyway, the video speaks a lot about porting a projects to native apps, and you may find some helpful information from it.

    The link to the post which reference the YouTube video is:

    scirra.com/forum/a-very-good-video-On-making-games-apps_topic85341.html

  • I am just taking a wild guess at this. Do you have an off screen Baubles that you are spawning from? If so, then you have 2 Baubles after you spawn the new one. If there is an original Bauble off screen, then that may be the one that is being destroyed which leaves the new Baubles onscreen. Normally I have seen people use a On start of layout > destroy object to account for this type of problem.

    When you change the code to Pick Baubles where Baubles.Lifttime < 0 you stated,

    "When the first bauble is spawned the "Missed" counter is increased by 1 and the bauble is not deleted.   

    After a few seconds it is deleted and the counter shows 2, but it should be 1."

    That increased "Missed" to 1 might be the original and then the second spawned instance onscreen Baubles is destroyed "and the counter shows 2, but should be 1."

    Try deactivating the "Spawning Baubles" and the "Despawning Baubles" groups, and then use the Debugger to track if any Baubles exist at the start of the layout. If there is one that exist, then your first Spawned Bauble is not the first Bauble picked and messing with your Vars and Conditions. Put a Keyboard when key X press then activate "Spawning Baubles" and check debugger again for all Var values # of Baubles and see if they are what you would expect. Then use another key press y to deactivate "Spawning Baubles" and activate "Despawning Baubles." Recheck Vars and # of Baubles to see if it is what your expected.

    I have learned that all to often what I think is happening is not the true "State" or "Status" of my vars or objects and the Debugger quickly reveals where my logic is bad. You can step through each event/action process using the debugger to watch every element taking place when, why, and what happened as a result of each ACE of your Events Sheet. Learning how to use the debugger was the best thing I did to help me to fix and stop writing bad code and how to rethink my logic before writing the code. Yann stated in one of his video tutorials that when the problem is complex, we should write out our logic in English, in my case, what we are trying to accomplish before we start coding. That was the best advice ever. As a result, I bought high quality whiteboard paint and made my sliding closet doors into a 7'x7' brainstorming wall. My ability to get it right the first time or fined problems quicker made all the difference in how I code. Instead digging a deep and complex coding hole that I cannot find my way out of, I just pickup a dry erase pen and eraser and make changes to my logic in a matter of seconds. He suggested getting a small whiteboard which would work to help in developing your logic process first then code and test it. I just when big on the whiteboard because, as you can see my mind runs 100 miles and hour and I need lots of space to get my ideas out.

    If you do not get the problem solve. Could you post your capx. I would love to see if I could help solve the problem, and also learn form your great ideas on how to create processes that I could study then modify to possibly use in my project development also.   Hope all works out for this problem and that maybe you could post the solution for the rest of us to learn from. Thanks.

  • I agree with jayderyu about titles, plugins, and documentation are very important. That kind of information would help me quickly filter what I need to learn now vs what I can search for and find later.

    I would also like to suggest that the Subject line of the subscription option emails be clearly differentiated from full Tutorials vs capx demos. I subscribed to English tutorials some time ago and found them helpful to view and make note of for future research. However, having the capx demos identified as Tutorials makes it seem like my inbox is being leaflet carpet boomed with everyone's latest ideas and trail runs at something.

    I like the capx demos and have already gained insight into how to write better code. However, it will only stay useful if the above suggestions are somehow implemented. Everyone please keep up the good work and sharing your brain power. All the info coming in is like I am hooked up to hundreds of shared BPU (brain processing unit) network worked together each doing small amounts of processing, but the data is scrambled and/or using different coding languages.

    Again, jayderyu is dead on about standardizing the data/submissions coming in so that we can all sort through it and gain a greater benefit form everyone's experience with C2 and practical experience as developers.

  • You could destroy each textobject and create a new one at the bottom, but you would have to keep track of the new textobject in order to set the text.

    Another way is for you to a use fix number of textobjects that will scroll up to fill screen plus 1 that is off screen at the bottom in the next positions to scroll onscreen. As the top one goes off screen, re-position textobject.Y off screen at the bottom of the column of textobjects. Then set text for that textobject to the next score before it scrolls on screen. Then there will always only be a set number of textobjects with set UID's that you loop through to set you next score to.

IKnowMyStory's avatar

IKnowMyStory

Member since 18 Oct, 2011

None one is following IKnowMyStory yet!

Connect with IKnowMyStory

Trophy Case

  • 13-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies