NECROKRIEG's Recent Forum Activity

  • Hi.

    I need a bit of help making a search box feature that loads a URL and a Fact. I'm using the CSV plugin and arrays. I'm at the stage where Iv placed the CSV data in an array and can load up images from Url's by pressing a button, but I'm not sure how to associate the'DATE's with the 'FACT' & 'URL' column so they're searchable.

    Capx

    The Idea: The user types in a date from the 'DATE' column, eg.'1 Jan 1942'. The programme will then bring up a fact and load the associated image from a URL.

    This is the spreadsheet before it's converted to CSV format (comma separated values)

    <img src="https://dl.dropboxusercontent.com/u/20299415/capx-forum/Pictures/facts-spreadsheet.png" border="0">

    Iv made a primitive search feature that works but it will mean I would have to do everything manually. (Capx demos this)

    What would be the best way to look up a fact by searching a date?

    Is the best way to load the 3 columns of data (pic above) into the Array and write an expression in the Text Box with the logic:

    When a "DATE" is detected in the Array:

    Sprite loads image from "URL" index of array.

    Text loads "FACT" from index of array.

    I'm a bit lost on how to form an expression.

    Thanks.

  • zenox98 woops. Didnt realise the age. The thread seemed relevant as it was among more recent posts in my search. I'll re-post in How Do I. Had no idea this is a CC post

    Post Move Here

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Games newt this might help:

    This is a basic example of loading in CSV data into an array. capx

    The Idea: The user types in a date from the 'DATE' column, eg.'1 Jan 1942'. The programm will then bring up a fact and load the associated image from a URL. Iv added a randomise button that uses the array to randomise a URL.

    <img src="https://dl.dropboxusercontent.com/u/20299415/capx-forum/Pictures/facts-spreadsheet.png" border="0">

    My Process: I made a spreadsheet via google docs, downlaoded it as a CSV file and then copied the CSV spreadsheet data and pasted it into the CSV plugin (you probably can load in the CSV doc instead of pasting data into C2)

    Iv made a primitive search feature that works but it will mean I would have to do everything manually.

    Would you guys happen to know how to look up one of the facts by searching a date in the text box?

    Is the best way to load the 3 columns of data into the Array and write an expression in the Text Box with the logic of:

    When a "DATE" is detected in the Array:

    Sprite loads image from "URL" index of array.

    Text loads "FACT" from index of array.

  • oh wow! Good Stuff Shapter

    (Sorry for the late response you didn't notify me with an )

    I'm trying to make a basic 'Look Up' app.

    You type in a character's name and their stats will appear along with an image loaded from a URL that's stored in an XML file or CVS spreadsheet.

    I like Mortal Kombat BUT always forget the moves so I thought I could type in a character's name to bring up their combos!

    Iv made a super primitive version, without XML, etc. Capx

    I'm going to go through your event sheet, very helpful!

    btw I love your game concept "Agents of a Corporate Empire" It reminds me of

    Subscribe to Construct videos now

    , love that game. It looks great.

  • A very helpful & simplified explanation CoffeeOD ! Thank you! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey Shapter !

    How did you get on with this project? I'm trying to do a similar thing. (pulling image's from a database and into a game)

  • I think it would be great to create a minimal vector based game like Pew Pew:

    <img src="http://www.androidtapp.com/wp-content/uploads/2011/02/PewPew-Megagore-Game-Mode.jpg" border="0" />

    The Vectrex could draw some crisp lines in the 80's :)

    <img src="http://www.racketboy.com/images/vectrex-1.jpg" border="0" />

  • :D thanks all!

  • RESOLVED SOLUTION:

    Here's how I and some others managed to figure out how to Re-snap a card to a slot (or deck) You can grab a card freely in the blank area and then snap it to the target. The capx below also contains menu animations, very much like the Angry birds win menus that slide in place once you complete a level :)

    Re-Snap Capx

    MORE INFO:

    For any advice on card game logic for touch screen devices check out this thread it has various solutions. :)

  • sainsy Thank you so much! I achieved what I wanted thanks to you! <img src="smileys/smiley32.gif" border="0" align="middle">

    Re-Snap Capx

    Instead of snapping permanently to the slot the cards can snap on and off. They can also be grabbed freely when they are in the white area.

    x

  • Hey gang!

    I'm using an instance variable to snap a card to It's slot. I can snap it once but when I drag it out and try to snap it again it won't snap back.

    Iv tried to reset the 'EmptySlot' value so the slot becomes empty when the card is out of the slot but it doesn't want to re-snap.

    This should be quite simple to do, am I missing something?

    capx

    :)

  • Hi chaps!

    I just thought I'll post the 2 prototype Card Games Iv been working on.

    New Features for both games Include:

    • Angry Bird styled win menus that slide in when you win.
    • Cards match to specific targets without arrays.

    Drag & Drop Card Game capx

    • Drag & drop the cards into the correct slots.

    Order & Match Card Game capx

    • Incorporates a sliding motion to order the cards in place.

    My Aim

    I was trying to achieve the right 'touch & feel' for a card game on a touch screen device. I wanted to make a simpler version of sainsy 's game without arrays.

    'Bugs'

    I couldn't figure out how to re-snap a card after the initial snap on the Drag & Drop game, it's a stupidly simple thing I can't yet resolve.

    Thanks All for the help! :)

NECROKRIEG's avatar

NECROKRIEG

Member since 15 Dec, 2012

None one is following NECROKRIEG yet!

Connect with NECROKRIEG

Trophy Case

  • 11-Year Club

Progress

11/44
How to earn trophies