Phantasmagoria style

Started by Leon101, Sat 12/09/2009 21:17:04

Previous topic - Next topic

Leon101

Say, how would I would be able to program my adventure games in the way of that Phantasmagoria game. Where your character stands in a room, in a predetermined spot, while you move the mouse around and interact and such.

I hope someone understands what I mean.

geork

 Well, I haven't played, but I've watched "the spoony one"
  First thing, I would draw now walkable areas (so you're character can't walk"). simply have him change room.
  Secondly, I wouldn't recommend deleting curours, but just have two and disable the rest (If you are playing from template"). Hotspots have the useful "mouse over" function, so if you're cursor moves over a hotspot where you click to change room, simply use mouse.Mode = (the name of you're mouse mode).
   I've also noticed that one entering a room, there is an animation. can be done using setBackgroundFrame(the frame) in room_AfterFadeIn(), then wait, then next frame untill you're back on you're background.
   Unfortunately, I'm not aware of an easy way to do the "move the head where the mouse is" thing, unless you assign many views to when you're mouse is in a different area of the room
    I hope that's what you meant  ;)
 

Khris

I've watched gameplay vids of Phantasmagoria 1+2 on youtube since I've never played them.
Not really sure what exactly you want to know though.
There's a cursor that changes automatically depending om what is hovering over; the first game seems to have the main character walking around while in the second, he just stands there and follows the cursor with his head.

Please explain what exactly you're having problems with here.

Leon101

Actually, in both games, the character does not actually walk around. They just stand in one place until you click somewhere. Here, how about this flash adventure game. I want to do it in this style:

http://www.newgrounds.com/portal/view/329275

geork

#4
 From what I've seen, the flash isn't much like phantasmagoria2
 well, that's pretty simple to do:
 1) character looking from side to side: set a timer in the repeatedly execute (to avoid doing this for every room, I would reccomend putting it in the script.asc repeatedly execute). Change character view each time the timer runs out.
 2) you'll not want a walkable area at all, but still a walking animation. when the player clicks on the GUI to go to the next room, tell the character to walk not using walkable areas over the edge, and when he crosses the edge, take him to another room. similarely, if he clicks a hotspot, then cause the character to walk there "ignoring walkable area".
 3) I would use GUI's for moving between rooms (those that you click on) using (GUI name).OnClick function (check GUI creater). in this function, but down you're actions (like change room) for when the player clicks on it.
 4) Hotspots are great because you have a mouse over function, so you can make an object light up behind the hotspot by using this function, and in it cause the object to change sprite (to a more glowy one).
    Most things one can find in the index
     I hope that's what you needed
 Geork

Leon101

Umm, yeah that flash is like Phantasmagoria. The character doesn't full move. Just like some other flash games I have played, such as Slacker (maybe I should do it like that one, should be easy for a huge noobie such as myself)

geork

 Well, we all gotta start somewhere (I'm also still quite new ;))
  I'd reccomend checking out videos on youtube under the heading AGS tutorial, which can give you some useful insight.
  Otherwise, you're best freind is the index!
   Good luck, I hope you find the AGS engine good enough for whatever you wish to make!

SMF spam blocked by CleanTalk