CrazyVulcan's Recent Forum Activity

  • Hello, I have a quick question on my code, mostly on operators. My current exercise is further learning and this current project is to make a Tarot Reading web app. As to why, why not? I needed a project and seen one online and felt I could make a better one. Currently I am dealing the cards from the deck and with a deck of ten cards but will expand to the full 78 card set.

    Dealing the first two are easy. First chose a num from 1-10 and pickNth instance that match's a family var for each card and position that card on the table. Here is where I am having trouble, For the next 9 cards how do you deal them form the deck and only select the cards that have not all ready been selected.

    Right now my attempt is to use a while loop to say during this step (Action = 2) if Card Var Card 2 (ThatWhichCross) is equal to Var Card 1 (HeartOfMatter) set Var Card 2 to new value between 1 and 10; else if they are not equal than place card and stop loop, also set Var Card 3 (TopOfMind)

    That part works just fine however it is when I move to dealing with more than one var that I am running into trouble.

    While (Action = 3) if Var Card 3 is equal to Var Card 1 OR Card 2 than chose another value between 1-10. else if the inverse than place the card and stop loop.

    The issue I am thinking is in the Operators “TopOfMind = ThatWhichCross | HeartOfMatter” the OR expression just dose not seem to be working as I think it should be working.

    I also may be approaching this wrong, total possibility any help offered will be welcomed.

  • CrazyVulcan

    Try to fix "NULL,NAME,RANK,TAC,SCI,ENG" to ",NAME,RANK,TAC,SCI,ENG" (remove NULL at first cell). It would be OK.

    That did the trick, thank you for your time.

  • rexrainbow

    First thank you for this plug-in, I find it to be much more intuitive than C2 array function. I am however experiencing one bug that I cant seem to nail down its cause and am hoping you could point me in the right direction.

    At start of layout I load a csv string

    "NULL,NAME,RANK,TAC,SCI,ENG

    1,Ted,Admiral,10,30,10

    2,Sue,Captain,16,4,0

    3,Bob,Ensign,0,6,0"

    and I can call it just fine such as CSV.At("NAME", str(1)) and I am expecting it to return "Ted" but for some resin the col will always move one to the right so instead it will return "Admiral". What am I doing wrong?

  • Hello, I have been working on this feature for the last week and have come a point where I do not know how to best proceed nor have I found what I need on the Forum/Manual.

    The feature that I am working on is not too dissimilar to a Party Select menu where you would chose from a graphical menu the character that you wish for each slot. This case, a ship where you have a Captain, Gunner, Pilot etc. You will chose form a list who you wish where and I will also use this system for upgrades and weapon outfits.

    Each character has stats such as proficiency in different fields. And in my first attempt I know I was going about it the wrong way as I was working on the Equipment and had it actually as an animation where I just selected the frame that I needed I had

    Equipment Compare Frame #x & For each Equipment set to ItemX → Do action to Ship Stats
    [endcode]
    
    However that was time consuming and not really feasible as while I currently only have so many equipment items; for the crew the player will be pulling form a list of hundreds. Depending on who they have unlocked. 
    
    My next attempt was to use Instance Variables and a CSV[plugin] list to pull up the needed info. What I am going for is to get a textbox to state the information of a row by
    
    [code]
    Mouse Object Clicked “Officer Family” → Set Instance Variable “Captain” to _____ 
    also
    Every Tick Set Text to {CSV.At(str(CSV.CurRow), str(Text2.Captain))}
    
    My CSV
    “
    NULL,NAME,STAT1,STAT2
    1,Rex,10,4
    2,Sue,8,6
    3Ted,9,5
    “
    [endcode]
    
    This to my understanding should set the textbox to display the row of the current value of “captain”. The trouble I am having is how to set the value by selecting the sprite portrait of the officer. Currently the sprites named Rex, Sue, and Ted are in a family called Officers. And for that _____ space I need to know what to do. I first tried using the UID and the IID (which allways returns 0) of the “Officer Family” 
    
    The UID works but the issue is that the numbers it returns are sporadic ie RexUID=3 while SueUID=12. And while I could go into my CSV file and set each instance of column one to the correct UID. With the list population potability totaling hundreds and the fact that the officers you can chose form will be imported form outside depending on who you currently have access to. I would want to try to find a more elegant solution. 
    
    I did note that in the debugger that each object in the tree under family had a UID numbering from 0+ and thought that I could use that but I cant seem to find why that will work. Also during my research I found this thread  [https://www dot scirra.com/forum/viewtopic.php?t=63729&start=0]but unfortunately the solution provided does not appear to work for the current version of C2
    
    I apologize for not including a .capx but I was having trouble finding time to make one that focused on the problem in general but I have tried to be as exact in my explanation as I could. If there is anything else I could add to help please let me know. 
    
    Thank you for your time
    
    <><><>
    Just a quick update as I managed to get this to work. My solution was to create a off screen Textbox called "MyShip" and in that I have added the instance variables of Captain, Pilot, etc. Now I am using this text object as a go between for my .csv and any textbox's that display info onscreen. for my .csv. It was essayist to use the UID for each instance of the Officers Family in my first column than having it ordered 0,1,2,etc. and now I can pick the sprite of any officer I want and have the go between Textbox MyShip{Set Captain @ CSV.At("NULL", str(Officers.UID)) } and all my boxes that reference Captain will update. 
    
    http: // i55.servimg.com/u/f55/13/83/53/12/scrria10.png
    
    Next step is incorporating all the officers into a master list with all their art and learn how to call the url image of only the ones I want and order them. But that is a different topic for another day.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:3i8wgt20]Curious how many people use, say Blender, to draw 3D characters and animate them. Then, use tools to render animation frames to 2D sprite sheets. Blender lets you control camera angle making it easy to produce different perspective based 2d art.

    Drawing the art is likely just as if not more time consuming but once its done in Blender you can change the sprite sheets a lot easier then redrawing 2d sprite sheets.

    Also, I like Inkscape.

    I use a program called DAZ Studio(Free) for just that purpose. Much easier than trying to copy a wooden doll to get those postures. Its a good technique for complex animations

    Also note that the title is art programs for beginners. I learned digital art using Paint.NET and can attest to its versatility. The nice thing about it as opposed to GIMP is that the GUI, (Personally) is more clean and utilitarian. Once you get to the point that you are playing with the image altering settings you will find that Paint.NET will have a large selections of plug-in's for you to play with.

    One thing you may find is that drawing with the mouse leaves a lot to be desired. I use a Bamboo Drawing tablet that you can pick up for 60USD for a middle of the road one and it allows you to sketch more naturally.

    A lot of people are suggesting vector image software such as IncScape and Illustrator(you can find CS2 Free form Adobe) but I dont think that they are good beginner drawing software. When I first started a few years back I tried vector graphics but had a hard time getting the how to to click. With IncScape which I use extensively now after a few years of experience. you do not sketch, which was the part that bothered me. You dont even really draw as you are just setting up vertacies and vectors to create shapes and using the program to make the basics do various things. But you of course are welcome to try and you may find it easier than I did.

    Depending on your style your pipe line will use many programs. I use a hybrid of 2d and 3d products in my art and once you pick up the basics those will most of the time carry to smiler products. Except for Blender I have not tried it in three years but with a GUI that was difficult to work and a hot key / general controls hard to memorize. I would stay far far away.

CrazyVulcan's avatar

CrazyVulcan

Member since 22 Dec, 2013

None one is following CrazyVulcan yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies