Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Ghost
« previous next »
  • Print
Pages: [1]

Author Topic: Ghost  (Read 4246 times)

Offline neb87

  • Zealot
  • *
  • Posts: 627
Ghost
« on: March 14, 2007, 08:53:27 PM »
Is it possible to make a monster(charset)
Run at you when you are not facing it
and run away from you when you are facing it.
example- The Ghost on Mario
Logged

Offline Archem

  • One, one too many schizophrenic tendancies
  • Global Moderator
  • Over 9000!
  • *
  • Posts: 15,013
  • I made a fortune in toothpicks, but I lost it all in a fire.
(No subject)
« Reply #1 on: March 14, 2007, 09:03:02 PM »
Yes.
Logged

Offline thepsynergist

  • Kupo!
  • Associate
  • *
  • Posts: 159
  • I enjoy video game programming, as well as any and all RPG's
(No subject)
« Reply #2 on: March 14, 2007, 09:04:06 PM »
lol
Logged
http://i212.photobucket.com/albums/cc135/thepsynergist/JeffsTrainerCard.png
Register me in your Pal Pad in Diamond/Pearl!

Offline neb87

  • Zealot
  • *
  • Posts: 627
(No subject)
« Reply #3 on: March 14, 2007, 09:04:35 PM »
ok so how?
Logged

Offline Bluhman

  • Global Moderator
  • Royal
  • *
  • Posts: 4,977
(No subject)
« Reply #4 on: March 14, 2007, 09:37:23 PM »
First, you need a Parallel process that charts which way the hero is facing. Next, you need your boo, or ghost, depending on what you want to call it.

Now, in the parallel process event, put two more variable setters which record where the ghost is located on the map. Using fork conditions in the event, check whether the ghost is in the heroes visibility, which should be a cone, which I don't know how to do, so you can assume it could be a column instead. Either way, if the fork condition turns out to be true for the hero staring at the ghost, turn on a switch, which will cause the ghost to back away in fear.

I'm not all that cut up for programming, so you might want to ask somebody of more prestige.
Logged

Offline neb87

  • Zealot
  • *
  • Posts: 627
(No subject)
« Reply #5 on: March 15, 2007, 05:08:14 AM »
Ok it's working sort of
The boo will go after me if I am not looking at it
but when I do look at it it will go back and fourth in a area of 2 squares

Heres the Code
Common Event-Parallel Process-Trigger Switch:0080 (on)
Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket
Photo Sharing and Video Hosting at Photobucket
END

Photo Sharing and Video Hosting at Photobucket

Photo Sharing and Video Hosting at Photobucket

Logged

Offline Dominicy

  • All men play on ten!
  • Leader
  • *
  • Posts: 2,852
(No subject)
« Reply #6 on: March 15, 2007, 05:47:35 AM »
with how you have it the ghost will go slower and slower and slower when your watching him.  just change the page speed to one less.
Logged

Offline neb87

  • Zealot
  • *
  • Posts: 627
(No subject)
« Reply #7 on: March 15, 2007, 05:52:25 AM »
Quote
Originally posted by Dominicy
with how you have it the ghost will go slower and slower and slower when your watching him.  just change the page speed to one less.

ok that fixed the speed but the
when you look at it it will go back and fourth bug
still in a effect
Logged

Offline MrMister

  • damn u vile woman
  • Royal
  • *
  • Posts: 3,506
(No subject)
« Reply #8 on: March 15, 2007, 06:13:14 AM »
The Mario ghosts don't run away when you look at them, they turn away and stop.
Logged
you look like an orphan

Offline Bluhman

  • Global Moderator
  • Royal
  • *
  • Posts: 4,977
(No subject)
« Reply #9 on: March 15, 2007, 07:07:06 PM »
Quote
Originally posted by MrMister
The Mario ghosts don't run away when you look at them, they turn away and stop.


Yeah, I know. It'd just be slightly more unique if the ghost slowly backed away instead of stopping in place.

But either way, it seems that the ghost is staying still when Neb's character looks at it.
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Ghost
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum