Log In  


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


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

Story

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

7


1

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)

1

Actually I know how to, but it could still help


1

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


How could I do this


@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.


I cleared space by removing hard mode


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


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


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

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


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
end

That should get you going


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


Didn't work


Said levelstart a nil value


"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.


oh ok


And how I do that


Where is the line I need to look at


This reminds me of Petscop.


How


very cool mod please make more levels



[Please log in to post a comment]