Log In  

Cart #rurbujuri-1 | 2020-01-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A work in progress for a mod of Hungry Harry 3D featuring a feminine Harry called Mary


The mushroom gang striked again, so Harry got at the shroom lord's castle, but he got kidnapped.
So now Mary has to go save him. Think of it as a sequel to the original hungry Harry 3D.

The story is narrated at the start of every level btw

I won't release any versions until it is completely different to the original

P#72440 2020-01-29 19:51 ( Edited 2020-02-03 22:57)


Looks nice! I left you a comment on the Hungry Harry thread for how to edit levels.

If you want to limit hunger to 100, a hacky way to do it is to just add the following line to _update:

health = min(100,health)
P#72465 2020-01-30 15:32

Actually I know how to, but it could still help

P#72476 2020-01-30 22:39

but want to make it so the second ground type to be deathpits

P#72503 2020-01-31 15:02

How could I do this

P#72542 2020-01-31 21:59

@Dogerizer it depends on exactly what you want to do. If you want to make the base ground a death pit, you could probably do the following:

  1. Remove the lines on the ground
  2. Set the minimum height Harry can fall to to some bigger negative value, like-80 instead of zero
  3. Set health to 0 if you got negative 80

Note, I specifically designed the original game with no death pits, and the ground lines kind of help to let the player get their bearings. Also, since the game does not have lives right now, you may want to implement a lives system so that death is not so bad. Alternatively, if they fall down a pit, maybe you can just teleport them to the start of the level and take away 20 health. I like that idea better actually.

P#72609 2020-02-02 13:40

I cleared space by removing hard mode

P#72612 2020-02-02 17:46

And also your idea seems less punishing for the player and I wouldn't need to make a lives system

P#72613 2020-02-02 17:57

Do I need to set it to -80 in the zones tab

P#72616 2020-02-02 18:47

The following code is in actor:collide() . You will need to somehow modify this line:

--force upwards from negative space
  if (self.z < 0)    self.dz,self.z,self.g,self.w[4]=0,ff,true,true
P#72663 2020-02-03 18:05

Might be hard cause I don't have any coding skills

P#72698 2020-02-03 23:06

You don't necessarily need to make the floor -80. I recommend just changing the line I showed above to the following:

if self.z < 0 then
 self.z = levelstart.z -- these will warp you to the start of the level
 self.x = levelstart.x
 self.y = levelstart.y
 self.dz = 0
 self.g = true -- this is the grounded flag
 self.w[4] = true -- this is another flag saying you landed this frame
 hunger += -20 -- lose a chunk of health

That should get you going

P#73168 2020-02-17 01:26

I want this because I want something more action like and also castle theme will have lava instead

P#73189 2020-02-18 00:05

Didn't work

P#73191 2020-02-18 00:40

Said levelstart a nil value

P#73192 2020-02-18 00:42

"levelstart" was just some pseudo-code on my part. You will need to figure out how to calculate what those actually are.

When a level is loaded, Harry is placed in some specific location. You will need to save those values when Harry is created (Harry.StartX, for example) and then stick them where I put the "levelstart" values.

P#73203 2020-02-18 13:48

oh ok

P#73204 2020-02-18 15:14

And how I do that

P#73241 2020-02-19 18:18

Where is the line I need to look at

P#73891 2020-03-13 21:43

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-03-28 09:21 | 0.043s | 2097k | Q:63