☆ nubbs ☆
☆ nubbs ☆
CC#
Created by ☆ nubbs ☆ on 11/17/2024 in #help
Rectangle Collision Detection in Monogame
No description
3 replies
CC#
Created by ☆ nubbs ☆ on 11/17/2024 in #help
Rectangle Collision Detection in Monogame
It may also be important to know this is how the animations are set for every object, but of course this is the player specific animation set.
3 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
thanks again so much for your help
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
i'll do some thinking and i'll see if i can figure it out
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
i do know how to do one, i have multiple in my game already, i tried just now throwing the drawing into a for loop up to 1000, but that glitched it out so i took them out. I was thinking having a random number combine with like a current spawn vector so that when it passes through a loop, it goes up by say 2000 and then the objects draw again but that doesnt seem to work
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
yeah see that's the thing, collisions don't work and I have no idea how to do them yet lol
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
its in infinite runner btw thats probably important information to have
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
i suppose so yeah, i need them to spawn as you move forward in the level basically
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
would you know how i'd go about spawning objects in intervals? like spawning those objects say 1000 times at random points within the next interval
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
now i need to figure out how to make it so they spawn again in intervals
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
thank you so much
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
it works!
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
yeah i just did that thank you, i'll test it now and see what happens
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
does that just mean chane randomnum to Random?
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
Member "Random.Shared" cannot be accessed with an instance reference; qualify it with a type name instead
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
i tried doing the random.shared where the random.next was and i got this message
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
okay i'll give that a try and see what happens, should i still use randomnumberspawn as the X for the object though?
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
so for the shared.next should i instantiate that in the class i want to use it in, or like you said a static one in like a globals class for example? i want the random number to change for every spawn if that makes sense, so i tried putting it in a for loop
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
and for some reason it glitches out only one of them, the rest are fine but one breaks for some reason?
47 replies
CC#
Created by ☆ nubbs ☆ on 10/29/2024 in #help
Spawning objects at random X co-ordinates and in fixed intervals
its supposed to spawn the object in a random X cord, it doesn't spawn it at all or just spawns it at 0, 0
47 replies