Author Topic: Half of a new tutorial has been added!  (Read 9005 times)

0 Members and 1 Guest are viewing this topic.

Offline Cloudee1

Half of a new tutorial has been added!
« on: March 22, 2010, 04:46:58 PM »
Ok, as a couple of members have seen, a loooong time ago I managed to get a total point and click system working. Recently I started writing up the code and process for how it is that I got mine to work.

The tutorial is going to be broken into two parts, the first creating a point and click inventory room and the second, converting the rest of the game to point and click.

The first half of the tutorial is completed and can be viewed on the tutorials section of the site.

Now, I admit, there is probably a much better way to do this than I have done it. But everything I have done works exactly as it is supposed to and because it is isolated to a "room", accessing has no impact on your memory resources, it is all self contained.

I plan to have the second half of the tutorial written in the next week or so, but for now just try to find a bug in this one  :-*


Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline MusicallyInspired

Re: Half of a new tutorial has been added!
« Reply #1 on: March 24, 2010, 12:35:51 AM »
Nice! I remember King Graham and I were trying to implement a P&C system. He started the cursour system and I created the icon bar. It failed miserably, though, when I kept running out of heap space by making the icon bar appear too many times. I guess the Event wasn't being disposed properly or something. Plus you seem to have solved the problem of heap space anyway besides that.
Brass Lantern Prop Competition

Offline Cloudee1

Re: Half of a new tutorial has been added!
« Reply #2 on: March 24, 2010, 12:11:54 PM »
I am absolutely anal about my heap space, and hunk too for that matter.  Hence all of the Unload stuff in there.

As a little sidenote, the other half of the tutorial is coming along nicely, I had to make some changes from how I had done it originally because of the differences between the two template games and the compilers, but I seem to have them both figured out. So it should be up soon.

I saw your guys' posts about your point and click stuff but I couldn't actually see any of it. From what I read though, you guys were doing something that I haven't even bothered to attempt, having the point and click menu disappear and reappear, mine is just going to be ever present. If you check out the images in the Fabulous Las Vegas thread under the sci games category, there is a picture there.
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline Cloudee1

Re: Half of a new tutorial has been added!
« Reply #3 on: April 02, 2010, 06:25:44 PM »
Ok, so I snuck most of the last half of the tutorial up there now. I still plan to come back in and break up the script a little bit to fill you in on what each part is doing, but I seem to be having trouble getting the time to sit down and actually do it. I will also come back with some sample scripts of how to interact with views, priorities, coordinates and any combinations thereof.

Till then, I didn't want to make you wait on me for the heart of the point and click game.
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline MusicallyInspired

Re: Half of a new tutorial has been added!
« Reply #4 on: April 02, 2010, 10:55:16 PM »
Nice stuff. I'll have a look through.

I can upload the demos we had if you're interested in a disappearing icon bar. Maybe you can think of something I didn't.

Interesting stuff. I particularly liked how you made the inventory window a pic resource rather than a GUI window port. Now all we need is a proper pathfinding code for the walk cursour to avoid control lines and blocked views. I tried doing this by utilising the Avoid class but I was unsuccessful. I wonder if it's possible? I know that the pathfinding in SCI1+ games was built right into the interpreter (at the expense of the parser) rather than scripted.

EDIT: Here's the demo I had. The iconbar stuff is in a script called setRegions (script 201).

P&C Icon Bar Demo
« Last Edit: April 02, 2010, 11:37:36 PM by MusicallyInspired »
Brass Lantern Prop Competition

Offline Cloudee1

Re: Half of a new tutorial has been added!
« Reply #5 on: April 03, 2010, 02:19:50 PM »
I'll have a look at it.

Just a little update,  I forced myself to sit down and write up a couple of examples for the point and click rooms, so for the most part the whole tutorial is up there. When I get the chance, I'm going to go through it all one last time add a couple of words here and there, fix some typos and when it is all done I will probly go ahead and just make the point and click template available for download...
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline MusicallyInspired

Re: Half of a new tutorial has been added!
« Reply #6 on: April 03, 2010, 03:02:47 PM »
Sweet. Having a P&C template game to start from would be spectacular.
Brass Lantern Prop Competition

Offline Cloudee1

Re: Half of a new tutorial has been added!
« Reply #7 on: April 03, 2010, 09:09:47 PM »
Ok, so I went ahead and uploaded the template as it is right now. I feel like I'm missing something though so I thought I would try out a little monthly competition making everyone use it, just to work out any bugs and finish it off before I actually make it official.

the current point and click template can be foud at:
http://sciprogramming.com/download/pntnclck.zip
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.047 seconds with 23 queries.