AuthorTopic: Source Code for a Word Puzzle (Read 8175 times)

Here is my demo with source code for newbies to WME or scripting for a Word Puzzle. It includes using a particle maker and an overlay. Overlays are cool. You just have to remember to check the box that makes an object "interactive" or your overlay will be dead. : ) How many times I have forgotten this. In fact, I wish it were the default that the object is interactive.

To open the puzzle layer, tap on the alien. Wait a short bit for her to open the puzzle layer. I put in a delay. The layer is opened via her dialogue.

When you are finished and want to know if you got the word right, tap on the circle up top. It will turn into a mushroom if you're right. Also, the alien will tell you if you are right if you tap on her again after you close the puzzle layer.

There is a heavy clue at the beginning. If you're not right, nothing will happen when you tap on the circle up top.

There is code to reshuffle the letters when you leave the puzzle layer by clicking on the X. This isn't really necessary, because you can still slide the letters around till you get it right.

If you're not right, tap on her again, she'll open the puzzle again.

This has a first person actor mode.

Thanks to The Derman for the code to slide the letters. Thanks to Mnemonic for everything else. : )Thanks to Maze for reminding me of X's and Y's through an old post he's probably forgotten. : )

Thanks. I'm doing mostly iphone programming now in 2.5d but what I learned here has helped me more immensely than I can say. Mnemonic and Wintermute basically taught me how to put a game together from start to finish and to use graphics and sound and video and so many things, even the tiniest thing about changing the game's icon to yours. : ) I will come back once I have 3d graphics nailed down. : )

I know that this is an old topic but I've just download the word puzzle and wanted to check it out in a puzzle that I make with new graphics.

Soooo I made all the necessary changes but instead of using .jpg format for the sprites and square shaped tablets for my letters I've used .png format for the sprites because my letters are in circle shape.....

And nothing works correct...I can pick up a letter, but I can't place it in any slot or drop it down.When I convert my letters in .jpg format the puzzle works just fine....

It has something to do with the alpha and the transarency?I've checked the manual of wme and supports .png files ....I have to change something in the script so wme can understand that my sprite has transparency?

I know this is an old thread, but hopefully someone can help me.As a newbie, I thought I'd try to use this puzzle in my game. I copied all the codes for the letters and such, and it looks like it might work, but when I click on a letter, there's no way to release it.I used the graphics that were already in the zip-file, but I haven't copied all of the code, since I'm not sure what is important.By that I mean that I already have a lot of codes in my games.script, and I don't know what exactly needs to be put in there from this one, if you know what I mean.Hopefully, I just missed something basic, that is usually the case when something is new and har to understand.