Cannot add item to list

csherrett

  • Posts: 6
Greetings.

I reviewed your "Lists" document in Stencylpedia.  I following the code blocks on the Method 2: Creating it on the Fly and entered those blocks into my game, but nothing is added to the Lists.  I put the block into When Updated, When Created, When Drawing and still have no results.  I have had success working with lists (i.e. looping through indexes to get return data, adding data to the list and importing from a text file).  But, I cannot get anything to add to the list through the code blocks.  It doesn't seem to be that difficult so I must be missing something very basic.  Any help would be great.  Thank.s

stefan

  • *
  • Posts: 2263
how do you check if something is added or not?

t4u

  • Posts: 418
try: add  (as text(applies)) to  testlist
USE PICTURES WHEN YOU ASK SOMETHING!
If I helped you be sure to mention it in your game.

Tutorials + downloads:
http://t4upl.blogspot.com/

CmdrWhitey13

  • Posts: 505
Hey man. I stumbled upon your post and seen you have some difficulty. The current game I'm working on uses lists to manage data.
Screenshots provided to show how its implemented. I do have create behavior that creates the images to be displayed. This happens when I click on the castle and click the unit to create. Also to move the image, drag mouse over it and shift left click another position. Provided in this demo should be a display that shows coordinates. If you create 2 units, you should see all values populate. I hope this helps you on your game learning adventure. 




<a href="http://static.stencyl.com/games/30619-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/30619-0.swf</a>

Link to game:  http://community.stencyl.com/index.php?topic=39923.msg230455#msg230455

« Last Edit: December 02, 2015, 04:26:40 pm by CmdrWhitey13 »